:root {
  /* Google-like vivid accents (blue/red/yellow/green), with calm neutrals for readability. */
  --g-blue: #4285f4;
  --g-red: #ea4335;
  --g-yellow: #fbbc05;
  --g-green: #34a853;

  --ink: #14171a;
  --deep: #0b1324;
  --ink-rgb: 20, 23, 26;
  --deep-rgb: 11, 19, 36;

  /* Legacy names kept for convenience (used as soft tints). */
  --leaf: var(--g-green);
  --mint: #c9f2dc;
  --foam: #eef6ff;
  --sun: #fff2c1;
  --glass: rgba(255, 255, 255, 0.18);
  --glass-strong: rgba(255, 255, 255, 0.28);
  --stroke: rgba(var(--deep-rgb), 0.12);
  --shadow: 0 24px 60px rgba(var(--deep-rgb), 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hina Mincho", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(66, 133, 244, 0.18) 0%, rgba(66, 133, 244, 0) 42%),
    radial-gradient(circle at 88% 18%, rgba(234, 67, 53, 0.14) 0%, rgba(234, 67, 53, 0) 45%),
    radial-gradient(circle at 70% 88%, rgba(52, 168, 83, 0.16) 0%, rgba(52, 168, 83, 0) 48%),
    radial-gradient(circle at 18% 92%, rgba(251, 188, 5, 0.12) 0%, rgba(251, 188, 5, 0) 55%),
    linear-gradient(180deg, #fcfdff 0%, #f6f9ff 35%, #ffffff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.liquid {
  position: absolute;
  width: 48vw;
  height: 48vw;
  border-radius: 44% 56% 45% 55% / 52% 42% 58% 48%;
  filter: blur(4px);
  opacity: 0.66;
  animation: drift 18s ease-in-out infinite;
  mix-blend-mode: multiply;
}

.liquid.one {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(66, 133, 244, 0.95) 0%,
    rgba(52, 168, 83, 0.85) 55%,
    rgba(11, 19, 36, 0.92) 100%
  );
  top: -12vw;
  left: -8vw;
}

.liquid.two {
  background: radial-gradient(
    circle at 60% 35%,
    rgba(234, 67, 53, 0.95) 0%,
    rgba(251, 188, 5, 0.9) 52%,
    rgba(11, 19, 36, 0.92) 100%
  );
  right: -10vw;
  top: 10vw;
  animation-delay: -6s;
}

.liquid.three {
  background: radial-gradient(
    circle at 40% 60%,
    rgba(52, 168, 83, 0.92) 0%,
    rgba(66, 133, 244, 0.82) 60%,
    rgba(11, 19, 36, 0.92) 100%
  );
  bottom: -18vw;
  left: 18vw;
  animation-delay: -12s;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%230b1324' fill-opacity='0.06'%3E%3Ccircle cx='20' cy='30' r='1'/%3E%3Ccircle cx='80' cy='40' r='1.5'/%3E%3Ccircle cx='140' cy='20' r='1'/%3E%3Ccircle cx='110' cy='90' r='1.2'/%3E%3Ccircle cx='50' cy='120' r='1'/%3E%3Ccircle cx='160' cy='140' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: soft-light;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 8vw 24px;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand-mark {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0.06em;
  color: var(--deep);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-size: 16px;
  letter-spacing: 0.08em;
}

.brand-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: rgba(var(--ink-rgb), 0.6);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stroke);
  background: var(--glass);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.lang-toggle:hover {
  transform: translateY(-2px);
  background: var(--glass-strong);
}

main {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: 0 8vw 120px;
}

.hero {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: rise 1.2s ease both;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(var(--ink-rgb), 0.65);
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.1;
  color: var(--deep);
}

.lead {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.8;
  color: rgba(var(--ink-rgb), 0.78);
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta {
  padding: 12px 22px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta.primary {
  background: linear-gradient(90deg, var(--g-blue), var(--g-red), var(--g-yellow), var(--g-green));
  background-size: 220% 100%;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.cta.primary:hover {
  background-position: 100% 0;
  box-shadow: 0 28px 70px rgba(var(--deep-rgb), 0.22);
}

.cta.ghost {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.5);
}

.cta:hover {
  transform: translateY(-2px);
}

.services .section-header,
.contact .section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
}

.section-header h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3.6vw, 40px);
}

.section-header p {
  line-height: 1.7;
  color: rgba(var(--ink-rgb), 0.7);
}

.cards {
  margin-top: 32px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 40px rgba(var(--deep-rgb), 0.08);
  backdrop-filter: blur(14px);
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--deep);
}

.card p {
  line-height: 1.7;
  color: rgba(var(--ink-rgb), 0.75);
}

.statement {
  padding: 48px;
  border-radius: 32px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.42),
    rgba(66, 133, 244, 0.18),
    rgba(251, 188, 5, 0.16)
  );
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
}

.statement-inner {
  display: grid;
  gap: 16px;
}

.statement-label {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: rgba(var(--ink-rgb), 0.7);
  text-transform: uppercase;
}

.statement-body {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.8;
  color: var(--deep);
}

.contact-box {
  margin-top: 28px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 40px rgba(var(--deep-rgb), 0.08);
}

.contact-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.65);
}

.contact-value {
  margin-top: 8px;
  font-size: 18px;
  color: var(--deep);
}

.site-footer {
  padding: 32px 8vw 48px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: rgba(var(--ink-rgb), 0.6);
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(6vw, -3vw) scale(1.05);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  main {
    gap: 80px;
  }
}
