/* ───────────────────────────────────────────────
       DESIGN SYSTEM
    ─────────────────────────────────────────────── */
    :root {
      --bg-deep: #060911;
      --bg: #0a0e17;
      --bg-elevated: #111827;
      --surface: #1a2235;
      --surface-hover: #1f2a40;
      --glass: rgba(17, 24, 39, 0.65);
      --glass-border: rgba(99, 130, 202, 0.12);
      --ink: #f0f4fc;
      --ink-secondary: #94a3c4;
      --ink-muted: #5b6b8a;
      --accent: #6366f1;
      --accent-light: #818cf8;
      --accent-glow: rgba(99, 102, 241, 0.35);
      --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
      --accent-gradient-h: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
      --green: #34d399;
      --green-glow: rgba(52, 211, 153, 0.2);
      --orange: #fb923c;
      --orange-glow: rgba(251, 146, 60, 0.2);
      --cyan: #22d3ee;
      --cyan-glow: rgba(34, 211, 238, 0.2);
      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 20px;
      --radius-xl: 28px;
      --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
      --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
      --shadow-lg: 0 24px 64px rgba(0,0,0,0.5);
      --shadow-glow: 0 0 60px var(--accent-glow);
      --max: 1140px;
      --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ───────────────────────────────────────────────
       RESET & BASE
    ─────────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
    body {
      font-family: "Pretendard", "Inter", "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;
      background: var(--bg);
      color: var(--ink);
      word-break: keep-all;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
      line-height: 1.6;
    }
    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    ul, ol { list-style: none; }
    h1, h2, h3, h4, p { margin: 0; }

    /* ───────────────────────────────────────────────
       UTILITY
    ─────────────────────────────────────────────── */
    .container {
      width: min(calc(100% - 40px), var(--max));
      margin: 0 auto;
    }

    .gradient-text {
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 16px;
      border-radius: 100px;
      background: rgba(99, 102, 241, 0.1);
      border: 1px solid rgba(99, 102, 241, 0.2);
      color: var(--accent-light);
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.02em;
    }
    .badge::before {
      content: "";
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--accent-light);
      box-shadow: 0 0 8px var(--accent-glow);
      animation: pulse-dot 2s ease-in-out infinite;
    }
    @keyframes pulse-dot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(1.4); }
    }

    /* ───────────────────────────────────────────────
       SCROLL ANIMATIONS
    ─────────────────────────────────────────────── */
    .reveal {
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }

    /* ───────────────────────────────────────────────
       BACKGROUND EFFECTS
    ─────────────────────────────────────────────── */
    .bg-grid {
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
      background-size: 60px 60px;
    }
    .bg-glow-1 {
      position: fixed; top: -200px; right: -200px; width: 600px; height: 600px;
      background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
      z-index: 0; pointer-events: none;
    }
    .bg-glow-2 {
      position: fixed; bottom: -200px; left: -200px; width: 500px; height: 500px;
      background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
      z-index: 0; pointer-events: none;
    }

    /* ───────────────────────────────────────────────
       TOP NAVIGATION
    ─────────────────────────────────────────────── */
    .topbar {
      position: fixed; top: 0; left: 0; right: 0;
      z-index: 100;
      background: rgba(10, 14, 23, 0.7);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border-bottom: 1px solid var(--glass-border);
      transition: background var(--transition), box-shadow var(--transition);
    }
    .topbar.scrolled {
      background: rgba(10, 14, 23, 0.92);
      box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    }
    .topbar-inner {
      display: flex; align-items: center; justify-content: space-between;
      gap: 16px; padding: 14px 0;
    }
    .brand {
      display: inline-flex; align-items: center; gap: 12px;
      text-decoration: none;
      transition: transform var(--transition);
    }
    .brand:hover { transform: scale(1.02); }
    .brand-mark {
      width: 40px; height: 40px; flex-shrink: 0;
      overflow: hidden; border-radius: 10px;
      background: var(--surface);
      border: 1px solid var(--glass-border);
      box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
    }
    .brand-mark img { width: 100%; height: 100%; object-fit: cover; }
    .brand-text { display: flex; flex-direction: column; }
    .brand-name {
      font-size: 1.05rem; font-weight: 800;
      line-height: 1.2; color: var(--ink);
    }
    .brand-sub {
      font-size: 0.72rem; font-weight: 600;
      color: var(--ink-muted); margin-top: 1px;
    }
    .nav { display: flex; align-items: center; gap: 6px; }
    .nav-link {
      display: none; padding: 8px 14px;
      font-size: 0.88rem; font-weight: 600; color: var(--ink-secondary);
      border-radius: var(--radius-sm);
      transition: color var(--transition), background var(--transition);
    }
    .nav-link:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
    .nav-cta {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 9px 18px;
      background: var(--accent-gradient);
      color: #fff; font-weight: 700; font-size: 0.88rem;
      border-radius: 100px;
      box-shadow: 0 4px 20px var(--accent-glow);
      transition: transform var(--transition), box-shadow var(--transition);
    }
    .nav-cta:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 30px var(--accent-glow);
    }
    .nav-cta svg { width: 14px; height: 14px; }

    /* ───────────────────────────────────────────────
       HERO SECTION
    ─────────────────────────────────────────────── */
    .hero {
      position: relative;
      padding: 120px 0 80px;
      overflow: hidden;
    }
    .hero::before {
      content: "";
      position: absolute; top: 0; left: 50%; transform: translateX(-50%);
      width: 900px; height: 500px;
      background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
      pointer-events: none;
    }
    .hero-content {
      position: relative; z-index: 2;
      text-align: center;
      max-width: 760px;
      margin: 0 auto;
    }
    .hero h1 {
      font-size: clamp(2.2rem, 7vw, 3.8rem);
      font-weight: 900;
      line-height: 1.18;
      letter-spacing: -0.02em;
      margin-top: 20px;
      margin-bottom: 20px;
    }
    .hero .lead {
      font-size: clamp(1rem, 2.5vw, 1.15rem);
      font-weight: 500;
      color: var(--ink-secondary);
      line-height: 1.8;
      max-width: 580px;
      margin: 0 auto;
    }

    /* CTA Buttons */
    .store-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-top: 26px;
      align-items: center;
      justify-content: center;
    }
    .store-badge {
      display: block;
      transition: transform var(--transition);
    }
    .store-badge:hover {
      transform: scale(1.05);
    }
    .store-badge img {
      height: 46px;
      width: auto;
      display: block;
    }
    .store-badge.play-store img {
      height: 64px; /* Google badge usually has built-in padding */
      margin: -9px 0;
    }
    .cta-box .store-badges {
      justify-content: center;
    }
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 10px;
      min-height: 54px; padding: 0 28px;
      border-radius: 14px;
      font-size: 0.95rem; font-weight: 700;
      transition: all var(--transition);
      cursor: pointer; border: none;
    }
    .btn svg { width: 20px; height: 20px; flex-shrink: 0; }
    .btn-primary {
      background: var(--accent-gradient);
      color: #fff;
      box-shadow: 0 8px 32px var(--accent-glow);
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 40px rgba(99, 102, 241, 0.45);
    }
    .btn-secondary {
      background: var(--surface);
      color: var(--ink);
      border: 1px solid var(--glass-border);
    }
    .btn-secondary:hover {
      background: var(--surface-hover);
      transform: translateY(-2px);
      border-color: rgba(99, 130, 202, 0.25);
    }

    /* Phone Mockup */
    .hero-phone {
      position: relative; z-index: 2;
      margin-top: 56px;
      display: flex; justify-content: center;
    }
    .phone-frame {
      position: relative;
      width: min(100%, 300px);
      border-radius: 36px;
      overflow: hidden;
      background: #000;
      border: 6px solid #2a2a3a;
      box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        0 24px 80px rgba(0,0,0,0.6),
        0 0 80px var(--accent-glow);
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                  box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .phone-frame:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 32px 100px rgba(0,0,0,0.7),
        0 0 100px rgba(99, 102, 241, 0.3);
    }
    .phone-frame img {
      width: 100%; display: block;
      border-radius: 30px;
      margin-top: -8%;
    }
    .phone-frame::after {
      content: "";
      position: absolute; top: 0; left: 0; right: 0;
      height: 28px;
      background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
      border-radius: 30px 30px 0 0;
      pointer-events: none;
    }

    /* ───────────────────────────────────────────────
       VALUE PROPS (Quick Grid)
    ─────────────────────────────────────────────── */
    .value-props {
      padding: 80px 0;
      position: relative;
    }
    .value-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }
    .value-card {
      position: relative;
      padding: 28px 24px;
      border-radius: var(--radius-lg);
      background: var(--glass);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(12px);
      transition: all var(--transition);
      overflow: hidden;
    }
    .value-card::before {
      content: "";
      position: absolute; top: 0; left: 0;
      width: 100%; height: 3px;
      background: var(--accent-gradient-h);
      opacity: 0;
      transition: opacity var(--transition);
    }
    .value-card:hover {
      background: var(--surface-hover);
      border-color: rgba(99, 130, 202, 0.2);
      transform: translateY(-4px);
      box-shadow: var(--shadow-md);
    }
    .value-card:hover::before { opacity: 1; }
    .value-card:nth-child(2)::before { background: linear-gradient(90deg, #34d399, #6ee7b7); }
    .value-card:nth-child(3)::before { background: linear-gradient(90deg, #fb923c, #fbbf24); }

    .value-icon {
      width: 48px; height: 48px;
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 18px;
      font-size: 1.3rem;
    }
    .value-icon.icon-record {
      background: rgba(99, 102, 241, 0.12);
      color: var(--accent-light);
    }
    .value-icon.icon-connect {
      background: var(--green-glow);
      color: var(--green);
    }
    .value-icon.icon-review {
      background: var(--orange-glow);
      color: var(--orange);
    }

    .value-label {
      display: block;
      font-size: 0.78rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--accent-light);
      margin-bottom: 8px;
    }
    .value-card:nth-child(2) .value-label { color: var(--green); }
    .value-card:nth-child(3) .value-label { color: var(--orange); }

    .value-card h3 {
      font-size: 1.15rem; font-weight: 800;
      line-height: 1.4; margin-bottom: 8px;
      color: var(--ink);
    }
    .value-card p {
      font-size: 0.92rem;
      color: var(--ink-secondary);
      line-height: 1.7;
    }

    /* ───────────────────────────────────────────────
       CONTENT SECTIONS (Medication / Condition)
    ─────────────────────────────────────────────── */
    .section {
      position: relative;
      padding: 90px 0;
    }
    .section + .section::before {
      content: "";
      position: absolute; top: 0; left: 50%; transform: translateX(-50%);
      width: min(100%, 800px); height: 1px;
      background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    }

    .content-pair {
      display: grid;
      grid-template-columns: 1fr;
      gap: 48px;
      align-items: center;
    }

    .section-text { order: 1; }
    .section-visual { order: 2; }

    .section-text h2 {
      font-size: clamp(1.7rem, 5vw, 2.6rem);
      font-weight: 800;
      line-height: 1.25;
      letter-spacing: -0.01em;
      margin-top: 16px;
      margin-bottom: 16px;
    }
    .section-lead {
      font-size: 1rem;
      color: var(--ink-secondary);
      line-height: 1.8;
      margin-bottom: 32px;
      max-width: 520px;
    }

    .text-block { display: grid; gap: 0; }
    .text-row {
      padding: 20px 0;
      border-top: 1px solid rgba(99, 130, 202, 0.08);
    }
    .text-row strong {
      display: flex; align-items: center; gap: 10px;
      font-size: 1rem; font-weight: 700;
      color: var(--ink); line-height: 1.4;
      margin-bottom: 6px;
    }
    .text-row strong::before {
      content: "";
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--accent-light);
      flex-shrink: 0;
    }
    .text-row p {
      font-size: 0.92rem;
      color: var(--ink-muted);
      line-height: 1.7;
      padding-left: 16px;
    }

    .screen-wrap {
      width: min(100%, 340px);
      margin: 0 auto;
    }
    .screen-wrap.is-wide { width: min(100%, 380px); }
    .screen-note {
      margin-top: 16px;
      text-align: center;
      font-size: 0.85rem;
      color: var(--ink-muted);
      line-height: 1.6;
    }

    /* ───────────────────────────────────────────────
       FEATURES GRID
    ─────────────────────────────────────────────── */
    .features {
      padding: 90px 0;
      position: relative;
    }
    .features::before {
      content: "";
      position: absolute; top: 0; left: 50%; transform: translateX(-50%);
      width: min(100%, 800px); height: 1px;
      background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    }
    .section-header {
      text-align: center;
      max-width: 620px;
      margin: 0 auto 48px;
    }
    .section-header h2 {
      font-size: clamp(1.7rem, 5vw, 2.6rem);
      font-weight: 800;
      line-height: 1.25;
      margin-top: 16px;
      margin-bottom: 14px;
    }
    .section-header p {
      font-size: 1rem;
      color: var(--ink-secondary);
      line-height: 1.8;
    }

    .feature-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }
    .feature-card {
      position: relative;
      padding: 28px 24px;
      border-radius: var(--radius-lg);
      background: var(--glass);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(12px);
      transition: all var(--transition);
      overflow: hidden;
    }
    .feature-card:hover {
      background: var(--surface-hover);
      transform: translateY(-4px);
      border-color: rgba(99, 130, 202, 0.2);
      box-shadow: var(--shadow-md);
    }
    .feature-icon {
      width: 44px; height: 44px;
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 18px;
      font-size: 1.2rem;
    }
    .fi-purple { background: rgba(99, 102, 241, 0.12); }
    .fi-green  { background: rgba(52, 211, 153, 0.12); }
    .fi-orange { background: rgba(251, 146, 60, 0.12); }
    .fi-cyan   { background: rgba(34, 211, 238, 0.12); }

    .feature-card h3 {
      font-size: 1.08rem; font-weight: 700;
      margin-bottom: 8px; color: var(--ink);
    }
    .feature-card p {
      font-size: 0.9rem;
      color: var(--ink-secondary);
      line-height: 1.7;
    }

    /* ───────────────────────────────────────────────
       WORKFLOW / DAILY FLOW
    ─────────────────────────────────────────────── */
    .workflow {
      padding: 90px 0;
      position: relative;
    }
    .workflow::before {
      content: "";
      position: absolute; top: 0; left: 50%; transform: translateX(-50%);
      width: min(100%, 800px); height: 1px;
      background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    }
    .workflow-list {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }
    .workflow-step {
      position: relative;
      padding: 28px 24px;
      border-radius: var(--radius-lg);
      background: var(--glass);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(12px);
      transition: all var(--transition);
    }
    .workflow-step:hover {
      background: var(--surface-hover);
      transform: translateY(-4px);
      border-color: rgba(99, 130, 202, 0.2);
      box-shadow: var(--shadow-md);
    }
    .step-number {
      display: inline-flex;
      align-items: center; justify-content: center;
      width: 36px; height: 36px;
      border-radius: 10px;
      background: var(--accent-gradient);
      color: #fff;
      font-size: 0.85rem; font-weight: 800;
      margin-bottom: 18px;
      box-shadow: 0 4px 16px var(--accent-glow);
    }
    .workflow-step h3 {
      font-size: 1.08rem; font-weight: 700;
      margin-bottom: 8px; color: var(--ink);
    }
    .workflow-step p {
      font-size: 0.9rem;
      color: var(--ink-secondary);
      line-height: 1.7;
    }

    /* ───────────────────────────────────────────────
       CTA BANNER
    ─────────────────────────────────────────────── */
    .cta-banner {
      padding: 90px 0;
      position: relative;
    }
    .cta-banner::before {
      content: "";
      position: absolute; top: 0; left: 50%; transform: translateX(-50%);
      width: min(100%, 800px); height: 1px;
      background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    }
    .cta-box {
      position: relative;
      text-align: center;
      padding: 56px 28px;
      border-radius: var(--radius-xl);
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
      border: 1px solid rgba(99, 102, 241, 0.15);
      overflow: hidden;
    }
    .cta-box::before {
      content: "";
      position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
      width: 500px; height: 300px;
      background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
      opacity: 0.4;
      pointer-events: none;
    }
    .cta-box h2 {
      position: relative;
      font-size: clamp(1.6rem, 5vw, 2.4rem);
      font-weight: 800;
      line-height: 1.3;
      margin-bottom: 14px;
    }
    .cta-box p {
      position: relative;
      font-size: 1rem;
      color: var(--ink-secondary);
      line-height: 1.7;
      max-width: 460px;
      margin: 0 auto 32px;
    }
    .cta-box .hero-actions { position: relative; }

    /* ───────────────────────────────────────────────
       SUPPORT / FOOTER SECTION
    ─────────────────────────────────────────────── */
    .support {
      padding: 90px 0;
      position: relative;
    }
    .support::before {
      content: "";
      position: absolute; top: 0; left: 50%; transform: translateX(-50%);
      width: min(100%, 800px); height: 1px;
      background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    }
    .support-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
      align-items: start;
    }
    .support-text h2 {
      font-size: clamp(1.5rem, 4vw, 2.2rem);
      font-weight: 800;
      line-height: 1.3;
      margin-top: 16px;
      margin-bottom: 14px;
    }
    .support-text .section-lead {
      margin-bottom: 28px;
    }
    .support-actions {
      display: flex; flex-wrap: wrap; gap: 12px;
    }

    .support-info {
      padding: 28px 24px;
      border-radius: var(--radius-lg);
      background: var(--glass);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(12px);
    }
    .support-info h3 {
      font-size: 1.08rem; font-weight: 700;
      margin-bottom: 6px; color: var(--ink);
    }
    .support-info > p {
      font-size: 0.9rem; color: var(--ink-secondary);
      line-height: 1.7; margin-bottom: 18px;
    }

    .info-list {
      border: 1px solid var(--glass-border);
      border-radius: var(--radius-md);
      overflow: hidden;
      background: rgba(10, 14, 23, 0.4);
    }
    .info-list li {
      display: flex; flex-direction: column; gap: 4px;
      padding: 14px 18px;
      font-size: 0.88rem;
      color: var(--ink-secondary);
    }
    .info-list li + li { border-top: 1px solid var(--glass-border); }
    .info-list strong {
      font-size: 0.82rem; font-weight: 700;
      color: var(--ink-muted);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .info-list a {
      color: var(--accent-light);
      font-weight: 600;
      transition: color var(--transition);
    }
    .info-list a:hover { color: #a78bfa; }

    .notice {
      margin-top: 20px;
      padding: 16px 18px;
      border-radius: var(--radius-md);
      background: rgba(239, 68, 68, 0.06);
      border-left: 3px solid #ef4444;
      font-size: 0.85rem;
      color: var(--ink-secondary);
      line-height: 1.7;
    }

    /* ───────────────────────────────────────────────
       FOOTER
    ─────────────────────────────────────────────── */
    .site-footer {
      padding: 32px 0 48px;
      border-top: 1px solid var(--glass-border);
    }
    .footer-inner {
      display: flex;
      flex-direction: column;
      gap: 16px;
      align-items: center;
      text-align: center;
    }
    .footer-copy {
      font-size: 0.85rem;
      color: var(--ink-muted);
    }
    .footer-links {
      display: flex; flex-wrap: wrap; gap: 20px;
      justify-content: center;
    }
    .footer-links a {
      font-size: 0.85rem;
      color: var(--ink-muted);
      transition: color var(--transition);
    }
    .footer-links a:hover { color: var(--accent-light); }

    /* ───────────────────────────────────────────────
       RESPONSIVE
    ─────────────────────────────────────────────── */
    @media (min-width: 640px) {
      .value-grid { grid-template-columns: repeat(3, 1fr); }
      .feature-grid { grid-template-columns: repeat(2, 1fr); }
      .workflow-list { grid-template-columns: repeat(3, 1fr); }
    }

    @media (min-width: 900px) {
      .container { width: min(calc(100% - 60px), var(--max)); }
      .nav-link { display: block; }
      .hero { padding: 160px 0 100px; }
      .hero h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); }
      .hero-phone { margin-top: 72px; }
      .phone-frame { width: min(100%, 320px); }
      .section, .features, .workflow, .cta-banner, .support { padding: 110px 0; }

      .content-pair {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
      }
      .medication-pair .section-text { order: 2; }
      .medication-pair .section-visual { order: 1; }

      .feature-grid { grid-template-columns: repeat(3, 1fr); }

      .support-grid { grid-template-columns: 1fr 1fr; }

      .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
      }
    }

    @media (min-width: 1100px) {
      .hero h1 { font-size: 3.6rem; }
      .phone-frame { width: min(100%, 340px); }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
      }
      .reveal { opacity: 1; transform: none; }
    }

    /* ───────────────────────────────────────────────
       FLOATING PARTICLES
    ─────────────────────────────────────────────── */
    .particle {
      position: fixed;
      border-radius: 50%;
      pointer-events: none;
      z-index: 0;
      animation: float linear infinite;
    }
    @keyframes float {
      0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
      10% { opacity: 1; }
      90% { opacity: 1; }
      100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
    }
  
/* Language navigation */
.header-actions { display: flex; align-items: center; gap: 18px; }
.language-switcher { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 12px; }
.language-switcher a { color: var(--ink-secondary); padding: 5px 0; }
.language-switcher a[aria-current="page"] { color: #fff; font-weight: 800; border-bottom: 2px solid var(--accent-light); }
a:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 5px; }
html[lang="en"] body { font-family: "Inter", system-ui, -apple-system, sans-serif; word-break: normal; }
html[lang="ja"] body { font-family: "Inter", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; word-break: normal; line-break: strict; }
@media (max-width: 899px) {
  .header-actions { flex-direction: column; align-items: flex-end; gap: 4px; }
  .brand-sub { max-width: 130px; }
  .nav-cta { padding: 7px 12px; font-size: 12px; }
  .language-switcher { gap: 10px; font-size: 11px; }
  .hero { padding-top: 145px; }
}
