/* ─── FONTS & VARIABLES ───────────────────────────────────── */
:root {
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   clamp(1.75rem, 3vw, 2.5rem);
  --text-hero: clamp(2.5rem,  5vw, 4.5rem);

  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --color-bg:         #f9f8f6;
  --color-text:       #0d0d0d;
  --color-muted:      #555555;
  --color-faint:      #999999;
  --color-border:     #e5e5e5;

  --page-padding: clamp(1.5rem, 6vw, 6rem);
  --col-gap: 1.5rem;
  --cols: 12;

  --radius: 0.375rem;
  --radius-full: 9999px;
  --transition: 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 4rem; }
body { font-family: var(--font-body); font-size: var(--text-base); line-height: 1.65; color: var(--color-text); background: var(--color-bg); }
img, svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }
:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ─── THE GRID ────────────────────────────────────────────── */
/*
  Everything lives inside .grid
  .grid is a 12-column grid that lives INSIDE the page padding
  All sections use .grid — content snaps directly to columns
*/
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--page-padding);
}


body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 220px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(210, 210, 210, 0.18), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(180, 180, 180, 0.12), transparent 28%);
}

/* ─── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}

/* Update this in style.css */
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--page-padding);
  min-height: 72px;
  position: relative;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.05); /* Lowered background color further */
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;

  /* ─── NEW AGGRESSIVE SETTINGS ────────────────────────── */
  /* Drop the blur dramatically (12px -> 3px) */
  /* Increased saturation so distorted colors are vibrant */
  backdrop-filter: url(#glass-warp-extreme) blur(3px) saturate(250%);
  -webkit-backdrop-filter: blur(3px) saturate(250%); /* Safari doesn't support SVG filters here, but we still lower the blur */
  /* ─────────────────────────────────────────────────── */

  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.03),
    0 10px 40px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);

  pointer-events: auto;
}

.nav__inner::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.01) 100%
  );
  pointer-events: none;
}

.nav__logo,
.nav__links {
  position: relative;
  z-index: 2;
}

.nav__logo {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-6);
  margin-left: auto;
}

.nav__links a {
  font-size: var(--text-sm);
  color: var(--color-muted);
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav__links a:hover { color: var(--color-text); }

.nav__cta {
  position: relative;
  overflow: visible; /* ← changed from hidden */
  color: var(--color-text) !important;
  font-weight: 500;
  border: 1px solid var(--color-border);
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  z-index: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.nav__cta:hover {
  background: var(--color-text) !important;
  color: #fff !important;
  border-color: var(--color-text) !important;
}

/* ─── OUTER GLOW SHIMMER (iOS edge effect) ─────────────────── */
.nav__cta::before {
  content: "";
  position: absolute;
  inset: -3px; /* sits just outside the button edge */
  border-radius: var(--radius-full);
  background: conic-gradient(
    from var(--angle, 0deg),
    #a8d8ff,   /* soft blue */
    #c8b8ff,   /* soft lavender */
    #a8eeff,   /* ice blue */
    #b8f0ff,   /* sky */
    #d4c8ff,   /* purple-blue */
    #a8d8ff    /* back to start */
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Mask so only the border edge glows, not the full fill */
.nav__cta::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  z-index: -1;
  pointer-events: none;
  transition: background 0.3s ease;
}

.nav__cta:hover::after {
  background: var(--color-text); /* matches the hover fill */
}

.nav__cta:hover::before {
  opacity: 1;
  animation: rotateBorderGlow 2s linear infinite;
}

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes rotateBorderGlow {
  to {
    --angle: 360deg;
  }
}

/* ─── SECTIONS ────────────────────────────────────────────── */
.site-main {}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.page-divider {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--page-padding);
  border-top: 1px solid var(--color-border);
}

/* ─── LABEL ───────────────────────────────────────────────── */
.label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-faint);
  margin-bottom: var(--space-4);
}

/* ─── HERO ────────────────────────────────────────────────── */

#top {
  padding-top: 150px;
}

.hero__text {
  grid-column: 1 / span 6;
  align-self: center;
  transform: translateY(-96px);
}

.hero__image {
  grid-column: 7 / span 6;
  align-self: stretch;
  transform: translateY(-48px);
}

h1 {
  font-size: var(--text-hero);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero__sub {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-blob-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}

.hero-blob-svg {
  width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
  overflow: visible;
}

#blobImage {
  width: 700px;
  height: 600px;
  filter: grayscale(100%) contrast(1.08);
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-text);
  color: #fff;
  border: 1px solid var(--color-text);
}
.btn--primary:hover { background: #333; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-text); }

/* ─── IMAGE PLACEHOLDERS ──────────────────────────────────── */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  border: 1px dashed #ddd;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  gap: var(--space-1);
}
.img-placeholder--portrait { aspect-ratio: 3 / 4; margin-bottom: var(--space-5); }
.img-placeholder span { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #bbb; }
.img-placeholder p { font-size: var(--text-xs); color: #bbb; }

/* ─── ABOUT ───────────────────────────────────────────────── */
.about__heading {
  grid-column: 1 / span 3;
  align-self: start;
}

.about__body {
  grid-column: 5 / span 7;
}

.about__heading h2 { font-size: var(--text-xl); }

.about__body p {
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}

.about__list {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-3);
}
.about__list li {
  font-size: var(--text-sm);
  color: var(--color-muted);
  padding-left: var(--space-5);
  position: relative;
}
.about__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-faint);
}

/* ─── PARTNERS ────────────────────────────────────────────── */
.partners__intro {
  grid-column: 1 / span 12;
  margin-bottom: var(--space-12);
}
.partners__intro h2 { font-size: var(--text-xl); margin-top: var(--space-2); }

.partner--ja {
  grid-column: 2 / span 4;
}
.partner--jo {
  grid-column: 8 / span 4;
}

.partner h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.partner p { color: var(--color-muted); font-size: var(--text-sm); }


/* ─── PRICING SECTION ─────────────────────────────────────── */
.pricing-header {
  grid-column: 1 / -1;
  margin-bottom: var(--space-8);
}

.pricing-header h2 {
  font-size: var(--text-xl);
}

.pricing-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  gap: var(--space-6);
  align-items: stretch;
  width: 100%;
}

.pricing-row > .pricing-option {
  flex: 1 1 0;
  min-width: 0;
}

.pricing-option {
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #fff;
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
}

.pricing-option h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
}

.pricing-option__tiers {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: auto;
}

.pricing-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  border-top: 1px solid var(--color-border);
}

/* removes the line above the first tier in each card */
.pricing-option__tiers .pricing-tier:first-child {
  border-top: none;
  padding-top: 0;
}

.pricing-tier__time {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-faint);
  margin-bottom: var(--space-2);
}

.pricing-tier__price {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--color-text);
}

.pricing-tier--featured {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: transparent;
}

.pricing-tier__badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-faint);
  margin-bottom: var(--space-3);
}

/* ─── CONTACT & FORM ──────────────────────────────────────── */
.contact__main {
  grid-column: 1 / span 6; /* Widened slightly to fit the form nicely */
}
.contact__aside {
  grid-column: 8 / span 4; /* Pushed to the right */
  display: grid;
  gap: var(--space-6);
  align-content: start;
  margin-top: var(--space-20); /* Brings the text down to align with the form inputs */
}

.contact__main h2 { font-size: var(--text-xl); margin-bottom: var(--space-5); }
.contact__main p { color: var(--color-muted); margin-bottom: var(--space-8); }
.contact__detail {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-top: var(--space-1);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.form-row {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.form-row > .form-group {
  flex: 1 1 calc(50% - (var(--space-5) / 2));
  min-width: 200px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: var(--color-faint);
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--color-text);
  box-shadow: 0 0 0 1px var(--color-text);
}

.contact__form textarea {
  resize: none;
  min-height: 100px;
}

/* Radio Buttons */
.radio-group {
  display: flex;
  flex-direction: column; /* This is the magic line that stacks them */
  gap: var(--space-3);    /* I tightened the gap slightly so they look better stacked */
  padding-top: var(--space-2);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-muted);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  margin: 0;
  position: relative;
  cursor: pointer;
}

.radio-label input[type="radio"]:checked {
  border-color: var(--color-text);
}

.radio-label input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: var(--color-text);
  border-radius: 50%;
}

.form-status {
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--space-2);
}

.form-status.success { color: #10b981; }
.form-status.error { color: #ef4444; }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-8);
}
.footer__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--page-padding);
  align-items: center;
}
.footer__logo {
  grid-column: 1 / span 2;
  font-family: var(--font-display);
}
.footer__copy {
  grid-column: 10 / span 3;
  text-align: right;
  font-size: var(--text-xs);
  color: var(--color-faint);
}

/* ─── PARTNER VIDEO CARDS ─────────────────────────────────── */
.video-window {
  width: 100%;
  height: 55vh;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
  margin-bottom: var(--space-5);
  background: transparent;
}

.parallax-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero__text  { grid-column: 1 / span 12; }
  .hero__image { grid-column: 1 / span 12; margin-top: var(--space-8); }

  .about__heading { grid-column: 1 / span 12; margin-bottom: var(--space-6); }
  .about__body    { grid-column: 1 / span 12; }

  .partners__intro { grid-column: 1 / span 12; }
  .partner--ja { grid-column: 1 / span 12; }
  .partner--jo { grid-column: 1 / span 12; margin-top: var(--space-12); }

  .contact__main  { grid-column: 1 / span 12; }
  .contact__aside { grid-column: 1 / span 12; margin-top: var(--space-10); }

  .nav__logo  { grid-column: 1 / span 6; }
  .nav__links { grid-column: 7 / span 6; gap: var(--space-4); }
  .nav__links li:not(:last-child) { display: none; }

  .footer__logo { grid-column: 1 / span 6; }
  .footer__copy { grid-column: 7 / span 6; text-align: right; }

  .pricing-row {
    flex-direction: column;
  }
}
