:root{
    --bg: #fff5fb;
    --surface: #fce8f5;
    --surface-2: #f9dff0;
    --footer-bg: #fff0f8;
    --border: rgba(220,100,180,0.18);
    --text: #3a1a2e;
    --text-muted: #8a4a72;
    --text-dim: #b87aaa;
    --accent: #ff6eb4;
    --accent-strong: #e0459a;
    --accent-ink: #ffffff;
    --success: #2dbf7e;
    --danger: #f06080;
    --sans: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --display: 'Quicksand', 'Nunito', sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    --radius: 16px;
    --max: 1120px;
    --shadow-dropdown: 0 18px 48px -10px rgba(220,100,180,0.28), 0 2px 12px rgba(220,100,180,0.10);
    --pink-light: #ffe0f3;
    --lavender: #ede0ff;
    --mint: #d6faf0;
    --yellow: #fff8d6;
    --peach: #ffe8d6;
  }
 
  html[data-theme="dark"]{
    --bg: #1e0e1a;
    --surface: #2a1224;
    --surface-2: #33172c;
    --footer-bg: #160a12;
    --border: rgba(255,140,210,0.16);
    --text: #ffe0f3;
    --text-muted: #f0a0d8;
    --text-dim: #c070a8;
    --accent: #ff82c0;
    --accent-strong: #ff55a8;
    --success: #4ade80;
    --danger: #f87171;
    --shadow-dropdown: 0 18px 48px -10px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,140,210,0.10);
  }
 
  *{ box-sizing: border-box; }
  html{
    scroll-behavior: smooth;
    scroll-padding-top: 68px; /* offsets anchor jumps so content lands below the fixed header */
    overscroll-behavior-y: none; /* stops the rubber-band bounce/"stretch" on overscroll */
  }
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }
 
  body{
    margin: 0;
    padding-top: 68px;
    background: var(--bg);
    background-image:
      radial-gradient(circle at 15% 20%, rgba(255,182,228,0.18) 0%, transparent 50%),
      radial-gradient(circle at 85% 80%, rgba(200,160,255,0.14) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, rgba(255,220,240,0.10) 0%, transparent 70%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    transition: background 0.2s ease, color 0.2s ease;
  }
 
  html[data-theme="dark"] .site-header{ background: rgba(30,14,26,0.90); }
  html[data-theme="dark"] .text-box.drag{ background: rgba(255,110,180,0.08); }
  html[data-theme="dark"] .tool-card{ background: none; }
  html[data-theme="dark"] .style-row{ background: rgba(255,255,255,0.03); }
  html[data-theme="dark"] nav.primary-nav{ box-shadow: 0 12px 32px -10px rgba(0,0,0,0.6); }
 
  h1,h2,h3{ font-family: var(--display); margin: 0; line-height: 1.2; letter-spacing: 0em; font-weight: 800; }
  p{ margin: 0; }
  a{ color: inherit; text-decoration: none; }
  button{ font-family: inherit; }
 
  :focus-visible{
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
  }
 
  .wrap{
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
  }
 
  /* ---------- Header ---------- */
  .site-header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 40;
    background: rgba(255,245,251,0.90);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(255,110,180,0.15);
  }
  .site-header .wrap{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
  }
  .logo{
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--display);
    font-weight: 900;
    letter-spacing: 0.01em;
    font-size: 20px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ff6eb4, #b06fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .logo svg{ width: 22px; height: 22px; flex-shrink: 0; color: #ff6eb4; -webkit-text-fill-color: initial; }
  .header-right{
    display: flex;
    align-items: center;
    gap: 14px;
  }
  nav.primary-nav{
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-left: auto;
  }
  nav.primary-nav a{
    font-size: 15px;
    color: var(--text-muted);
    transition: color 0.15s ease;
    padding: 4px 0;
  }
  nav.primary-nav a:hover{ color: var(--accent); font-weight: 700; }
  nav.primary-nav a.is-active{ color: var(--accent); font-weight: 700; }
  .nav-item{ position: relative; }
  .more-btn{
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 15px;
    padding: 4px 0;
    transition: color 0.15s ease;
  }
  .more-btn:hover{ color: var(--accent); }
  .more-btn svg{ width: 12px; height: 12px; transition: transform 0.15s ease; }
  .nav-item.open .more-btn{ color: var(--accent); }
  .nav-item.open .more-btn svg{ transform: rotate(180deg); }
  .dropdown-menu{
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: auto;
    min-width: 460px;
    background: #fff5fb;
    border: 2px solid rgba(255,110,180,0.15);
    border-radius: 24px;
    padding: 14px;
    box-shadow: var(--shadow-dropdown);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  }
  .nav-item.open .dropdown-menu{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .dropdown-links{
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
  }
  .dropdown-menu a{
    font-size: 15px;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    transition: background 0.15s ease, color 0.15s ease;
    font-weight: 600;
  }
  .dropdown-menu a:hover{ background: var(--pink-light); color: var(--accent); }
  .dropdown-divider{ height: 1px; background: rgba(20,21,26,0.12); margin: 6px 8px; }
  .dropdown-divider-v{ width: 1px; align-self: stretch; background: rgba(20,21,26,0.12); flex-shrink: 0; }
  .dropdown-categories{
    flex-shrink: 0;
    width: 250px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    align-content: start;
  }
  .dropdown-cat-label{
    grid-column: 1 / -1;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px 4px;
  }
  .dropdown-categories a{ font-size: 13.5px; padding: 8px 10px; }
  .menu-toggle{
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 7px;
    cursor: pointer;
    color: var(--text);
    flex-shrink: 0;
  }
  .menu-toggle svg{ width: 20px; height: 20px; display: block; }
  .theme-toggle{
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 7px;
    cursor: pointer;
    color: var(--text);
    flex-shrink: 0;
    transition: border-color 0.15s ease;
  }
  .theme-toggle:hover{ border-color: var(--accent); }
  .theme-toggle svg{ width: 18px; height: 18px; display: block; }
  .theme-toggle .icon-sun{ display: none; }
  html[data-theme="dark"] .theme-toggle .icon-moon{ display: none; }
  html[data-theme="dark"] .theme-toggle .icon-sun{ display: block; }
 
  /* ---------- Hero / Tool ---------- */
  .hero{ padding: 64px 0 80px; position: relative; overflow: hidden; }
  .hero::before{
    content: '✿ ♡ ✦ ☆ ✿ ♡ ✦ ☆ ✿ ♡ ✦ ☆ ✿ ♡ ✦ ☆ ✿ ♡';
    position: absolute; top: 10px; left: 0; right: 0;
    text-align: center; font-size: 13px; color: rgba(255,110,180,0.3);
    letter-spacing: 8px; pointer-events: none; white-space: nowrap; overflow: hidden;
  }
  .hero::after{
    content: '✿ ♡ ✦ ☆ ✿ ♡ ✦ ☆ ✿ ♡ ✦ ☆ ✿ ♡ ✦ ☆ ✿ ♡';
    position: absolute; bottom: 10px; left: 0; right: 0;
    text-align: center; font-size: 13px; color: rgba(176,111,255,0.25);
    letter-spacing: 8px; pointer-events: none; white-space: nowrap; overflow: hidden;
  }
  .hero .wrap{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }
  .hero-copy{ text-align: center; max-width: 640px; }
  .hero-copy h1{
    font-size: clamp(32px, 4vw, 50px);
    max-width: 100%;
    background: linear-gradient(135deg, #ff6eb4 0%, #b06fff 50%, #ff90ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    line-height: 1.15;
  }
  .hero-copy p.lede{
    margin-top: 18px;
    font-size: 17px;
    color: var(--text-muted);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
  }
  .badges{
    display: flex;
    gap: 10px;
    margin-top: 26px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .badge{
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-strong);
    border: 2px solid rgba(255,110,180,0.3);
    border-radius: 999px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,110,180,0.07);
  }
  .badge::before{
    content: '♡';
    font-size: 12px;
    color: var(--accent);
    flex-shrink: 0;
  }
 
  /* ---------- Tool card ---------- */
  .tool-card{
    background: rgba(255,255,255,0.60);
    border: 2px solid rgba(255,110,180,0.15);
    border-radius: 28px;
    padding: 32px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 8px 40px rgba(255,110,180,0.10), 0 2px 8px rgba(176,111,255,0.08);
    backdrop-filter: blur(8px);
  }
  html[data-theme="dark"] .tool-card{
    background: rgba(42,18,36,0.70);
    border-color: rgba(255,140,210,0.14);
  }
  .text-box{
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    height: 54px;
    background: var(--surface-2);
    border: 2.5px solid rgba(255,110,180,0.25);
    border-radius: 20px;
    padding: 0 12px 0 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
  }
  .text-box:focus-within{
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255,110,180,0.12);
  }
  .text-box svg{ width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; opacity: 0.7; }
  .text-box input[type=text]{
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--display);
    font-size: 17px;
    font-weight: 700;
    padding: 0;
    height: 100%;
    min-width: 0;
  }
  .text-box input[type=text]::placeholder{ color: var(--text-dim); font-weight: 500; }
  .text-box input[type=text]:focus-visible{ outline: none; }
  .text-box .box-actions{ display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
  .box-actions button{
    background: rgba(255,110,180,0.10); border: none; color: var(--accent);
    cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1; padding: 7px 12px;
    border-radius: 12px; transition: background 0.15s ease, color 0.15s ease;
  }
  .box-actions button:hover{ background: rgba(255,110,180,0.22); color: var(--accent-strong); }
  .fetch-hint{
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 10px;
    font-weight: 600;
  }
  .char-count{ font-family: var(--mono); }
 
  .style-panel{
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px dashed rgba(255,110,180,0.18);
    scroll-margin-top: 84px;
  }
  .style-panel:first-of-type{ margin-top: 22px; padding-top: 0; border-top: none; }
  .style-panel-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
  }
  .style-panel-head h3{
    font-size: 18px;
    font-family: var(--display);
    font-weight: 800;
    background: linear-gradient(120deg, var(--accent), #b06fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .style-panel-head .count{
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
    flex-shrink: 0;
    background: rgba(255,110,180,0.10);
    padding: 3px 10px;
    border-radius: 99px;
  }
 
  .style-list{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }
  .style-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid rgba(255,110,180,0.15);
    border-radius: 20px;
    background: rgba(255,255,255,0.55);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  }
  html[data-theme="dark"] .style-row{
    background: rgba(255,255,255,0.04);
  }
  .style-row:hover{
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(255,110,180,0.14);
    transform: translateY(-1px);
  }
  .style-row .fmt{ display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
  .style-row .fmt .label{
    font-size: 11px;
    font-weight: 800;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--sans);
  }
  .style-row .fmt .preview{
    font-size: 16px;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
    font-weight: 600;
  }
  .copy-btn{
    flex-shrink: 0;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #ff6eb4, #c96eff);
    color: #ffffff;
    transition: opacity 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    box-shadow: 0 3px 10px rgba(255,110,180,0.3);
    letter-spacing: 0.02em;
  }
  .copy-btn:hover{
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(255,110,180,0.4);
  }
  .copy-btn.is-copied{
    background: linear-gradient(135deg, #2dbf7e, #20a87a);
    box-shadow: 0 3px 10px rgba(45,191,126,0.3);
  }
 
  @keyframes fadeIn{
    from{ opacity: 0; transform: translateY(4px); }
    to{ opacity: 1; transform: translateY(0); }
  }
 
  /* ---------- Sections ---------- */
  .section{ padding: 76px 0; }
  .section-head{ max-width: 560px; margin: 0 auto 40px; text-align: center; }
  .section-head .kicker{
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .section-head h2{
    font-size: clamp(24px, 3vw, 34px);
    background: linear-gradient(120deg, #ff6eb4, #b06fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
  }
  .section-head p{ color: var(--text-muted); margin-top: 12px; font-size: 15.5px; font-weight: 600; }
 
  .steps-list{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .step{
    padding: 28px 24px;
    text-align: center;
    background: rgba(255,255,255,0.6);
    border: 2px solid rgba(255,110,180,0.14);
    border-radius: 24px;
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .step:hover{ transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255,110,180,0.14); }
  html[data-theme="dark"] .step{ background: rgba(255,255,255,0.04); }
  .step .num{
    font-family: var(--display);
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6eb4, #b06fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .step h3{ font-size: 17px; margin-top: 10px; font-weight: 800; }
  .step p{ font-size: 14px; color: var(--text-muted); margin-top: 8px; font-weight: 600; }
 
  .why-list{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .why-item{
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 10px; padding: 28px 20px;
    background: rgba(255,255,255,0.55);
    border: 2px solid rgba(255,110,180,0.12);
    border-radius: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .why-item:hover{ transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255,110,180,0.12); }
  html[data-theme="dark"] .why-item{ background: rgba(255,255,255,0.04); }
  .why-item .ico{
    font-size: 30px;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(255,110,180,0.15), rgba(176,111,255,0.15));
    border-radius: 50%;
  }
  .why-item h3{ font-size: 16px; font-weight: 800; }
  .why-item p{ font-size: 13.5px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
 
  .usecase-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .usecase-card{
    display: block;
    border: 2px solid rgba(255,110,180,0.16);
    border-radius: 22px;
    padding: 22px 18px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    background: rgba(255,255,255,0.55);
  }
  html[data-theme="dark"] .usecase-card{ background: rgba(255,255,255,0.04); }
  .usecase-card:hover{
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255,110,180,0.16);
  }
  .usecase-card .range{
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .usecase-card h3{ font-size: 15.5px; margin-top: 8px; font-weight: 800; }
  .usecase-card p{ font-size: 13px; color: var(--text-muted); margin-top: 6px; font-weight: 600; }
 
  .faq-list{ border-top: 2px dashed rgba(255,110,180,0.18); }
  details.faq-item{ border-bottom: 2px dashed rgba(255,110,180,0.14); }
  details.faq-item summary{
    padding: 20px 0; cursor: pointer; font-weight: 700; font-size: 15px;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    color: var(--text);
  }
  details.faq-item summary::-webkit-details-marker{ display: none; }
  details.faq-item summary::after{
    content: '♡';
    font-size: 18px;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  details.faq-item[open] summary::after{ content: '✦'; transform: rotate(45deg); }
  details.faq-item .faq-body{ padding: 0 0 20px; color: var(--text-muted); font-size: 14.5px; max-width: 700px; font-weight: 600; }
 
  footer{
    background: var(--footer-bg);
    padding: 56px 0 32px;
    border-top: 2px dashed rgba(255,110,180,0.18);
  }
  .footer-top{
    display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
    padding-bottom: 36px; border-bottom: 2px dashed rgba(255,110,180,0.14);
  }
  .footer-brand{ max-width: 280px; }
  .footer-brand .logo{ margin-bottom: 12px; }
  .footer-brand p{ font-size: 14px; color: var(--text-muted); font-weight: 600; }
  .footer-cols{ display: flex; gap: 48px; flex-wrap: wrap; }
  .footer-col h4{ font-size: 12px; color: var(--accent); font-weight: 900; margin-bottom: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
  .footer-col ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
  .footer-col a{ font-size: 15px; color: var(--text); font-weight: 600; }
  .footer-col a:hover{ color: var(--accent); }
  .footer-bottom{
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; font-size: 13px; color: var(--text-dim); flex-wrap: wrap; gap: 10px; font-weight: 600;
  }
 
  @media (max-width: 880px){
    nav.primary-nav{
      position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
      background: var(--bg); flex-direction: column; align-items: flex-start;
      padding: 24px; gap: 18px; transform: translateX(-100%);
      transition: transform 0.2s ease; overflow-y: auto; z-index: 39;
    }
    nav.primary-nav.open{ transform: translateX(0); }
    .menu-toggle{ display: flex; }
    .dropdown-menu{ position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none; box-shadow: none; border: 2px solid rgba(255,110,180,0.15); display: none; }
    .nav-item.open .dropdown-menu{ display: flex; flex-direction: column; }
    .dropdown-divider-v{ display: none; }
    .dropdown-categories{ width: auto; grid-template-columns: 1fr; }
    .steps-list, .why-list, .usecase-grid{ grid-template-columns: 1fr; }
    .site-header{ backdrop-filter: none; background: rgba(255,245,251,0.98); }
    html[data-theme="dark"] .site-header{ background: rgba(30,14,26,0.98); }
  }
  @media (max-width: 620px){
    .style-list{ grid-template-columns: 1fr; }
    .style-row{ flex-direction: column; align-items: stretch; }
    .copy-btn{ width: 100%; }
  }