
  @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600;700&display=swap');

  :root{
    --vanilla:#FFFBF1;
    --vanilla-2:#FFF3E0;
    --ink:#1B1B2F;
    --blue:#4D6BFE;
    --pink:#FF5CA8;
    --orange:#FF8A3D;
    --green:#33D6A6;
    --card-border:#1B1B2F;
    --shadow:6px 6px 0 var(--ink);
    --shadow-sm:3px 3px 0 var(--ink);
    --radius:20px;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family:'Inter',sans-serif;
    background:var(--vanilla);
    color:var(--ink);
    min-height:100vh;
    background-image:
      radial-gradient(circle at 8% 15%, rgba(77,107,254,0.10) 0%, transparent 40%),
      radial-gradient(circle at 92% 10%, rgba(255,92,168,0.12) 0%, transparent 40%),
      radial-gradient(circle at 85% 85%, rgba(255,138,61,0.12) 0%, transparent 45%),
      radial-gradient(circle at 10% 90%, rgba(51,214,166,0.10) 0%, transparent 40%);
    background-attachment:fixed;
  }
  h1,h2,h3,.display{font-family:'Space Grotesk',sans-serif;}
  a{color:inherit; text-decoration:none;}
  ::selection{background:var(--pink); color:white;}

  /* Layout */
  .app{display:flex; min-height:100vh;}
  .sidebar{
    width:260px; flex-shrink:0;
    background:var(--ink); color:var(--vanilla);
    padding:24px 18px; position:sticky; top:0; height:100vh; overflow-y:auto;
  }
  .brand{display:flex; align-items:center; gap:10px; margin-bottom:26px; cursor:pointer;}
  .brand .clockmark{
    width:34px; height:34px; border-radius:50%;
    background:conic-gradient(from 0deg, var(--pink), var(--blue), var(--orange), var(--green), var(--pink));
    position:relative; flex-shrink:0;
  }
  .brand .clockmark::after{
    content:''; position:absolute; inset:5px; background:var(--ink); border-radius:50%;
  }
  .brand-text{font-family:'Space Grotesk'; font-weight:700; font-size:16px; line-height:1.1;}
  .brand-text span{color:var(--orange);}

  .nav-group-label{
    font-size:11px; text-transform:uppercase; letter-spacing:0.08em;
    opacity:0.5; margin:18px 0 8px 8px; font-weight:600;
  }
  .nav-link{
    display:flex; align-items:center; gap:10px;
    padding:9px 10px; border-radius:10px; font-size:14px; font-weight:500;
    cursor:pointer; margin-bottom:2px; opacity:0.85; transition:background .15s, opacity .15s;
  }
  .nav-link:hover{background:rgba(255,255,255,0.08); opacity:1;}
  .nav-link.active{background:rgba(255,255,255,0.14); opacity:1;}
  .nav-emoji{font-size:15px;}

  .main{flex:1; min-width:0; padding:36px 40px 80px;}
  .container{max-width:920px; margin:0 auto;}

  /* Home hero */
  .hero{
    border:3px solid var(--ink); border-radius:28px; background:white;
    box-shadow:var(--shadow); padding:44px 40px; margin-bottom:36px; position:relative; overflow:hidden;
  }
  .hero::before{
    content:''; position:absolute; top:-60px; right:-60px; width:220px; height:220px; border-radius:50%;
    background:conic-gradient(from 90deg, var(--pink), var(--orange), var(--blue), var(--green), var(--pink));
    opacity:0.18; filter:blur(2px);
  }
  .eyebrow{
    display:inline-block; font-size:12px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase;
    background:var(--green); color:var(--ink); padding:5px 12px; border-radius:99px; border:2px solid var(--ink); margin-bottom:16px;
  }
  .hero h1{font-size:44px; line-height:1.05; font-weight:700; margin-bottom:14px; max-width:600px;}
  .hero h1 .hl{color:var(--pink);}
  .hero p{font-size:16px; opacity:0.75; max-width:520px; line-height:1.5;}
  .hero-live{
    margin-top:22px; display:inline-flex; gap:18px; align-items:baseline;
    font-family:'Space Grotesk'; font-weight:700; font-size:34px; background:var(--vanilla-2);
    border:2px solid var(--ink); border-radius:14px; padding:10px 20px;
  }
  .hero-live small{font-size:12px; font-weight:600; font-family:'Inter'; opacity:0.6; display:block; margin-top:-4px;}

  .section-title{font-size:22px; font-weight:700; margin:36px 0 16px;}
  .tool-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:16px;}
  .tool-card{
    background:white; border:2.5px solid var(--ink); border-radius:16px; padding:18px;
    cursor:pointer; box-shadow:var(--shadow-sm); transition:transform .12s, box-shadow .12s;
  }
  .tool-card:hover{transform:translate(-2px,-2px); box-shadow:5px 5px 0 var(--ink);}
  .tool-card .icon{
    width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center;
    font-size:20px; margin-bottom:12px; border:2px solid var(--ink);
  }
  .tool-card h3{font-size:15px; font-weight:700; margin-bottom:4px; font-family:'Inter';}
  .tool-card p{font-size:12.5px; opacity:0.65; line-height:1.4;}

  .bg-blue{background:#DCE4FF;} .bg-pink{background:#FFDCEE;} .bg-orange{background:#FFE5D0;} .bg-green{background:#D2F7EA;}

  /* Tool page */
  .tool-page{background:white; border:3px solid var(--ink); border-radius:24px; padding:32px 36px; box-shadow:var(--shadow);}
  .back-link{display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; opacity:0.6; margin-bottom:14px; cursor:pointer;}
  .back-link:hover{opacity:1;}
  .tool-page h2{font-size:28px; margin-bottom:6px;}
  .tool-sub{opacity:0.6; font-size:14px; margin-bottom:26px;}

  .btn{
    font-family:'Inter'; font-weight:700; font-size:14px; border:2.5px solid var(--ink); border-radius:12px;
    padding:11px 20px; cursor:pointer; background:var(--vanilla); box-shadow:var(--shadow-sm);
    transition:transform .1s; color:var(--ink);
  }
  .btn:hover{transform:translate(-2px,-2px); box-shadow:5px 5px 0 var(--ink);}
  .btn:active{transform:translate(0,0); box-shadow:1px 1px 0 var(--ink);}
  .btn-blue{background:var(--blue); color:white;}
  .btn-pink{background:var(--pink); color:white;}
  .btn-orange{background:var(--orange); color:white;}
  .btn-outline{background:white;}
  .btn:disabled{opacity:0.4; cursor:not-allowed;}
  .btn-row{display:flex; gap:10px; flex-wrap:wrap; margin:18px 0;}

  input[type=text], input[type=number], input[type=date], input[type=time], select, textarea{
    font-family:'Inter'; font-size:14px; border:2px solid var(--ink); border-radius:10px;
    padding:10px 12px; background:var(--vanilla); width:100%;
  }
  input:focus, select:focus, textarea:focus{outline:3px solid var(--blue); outline-offset:1px;}
  label{font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.03em; opacity:0.6; display:block; margin-bottom:6px;}
  .field{margin-bottom:16px;}
  .field-row{display:flex; gap:12px; flex-wrap:wrap;}
  .field-row .field{flex:1; min-width:140px;}

  .big-display{
    font-family:'Space Grotesk'; font-weight:700; text-align:center; letter-spacing:-0.01em;
    font-size:64px; padding:30px 10px; background:var(--vanilla-2); border:2.5px solid var(--ink); border-radius:18px; margin:18px 0;
  }
  @media (max-width:640px){ .big-display{font-size:40px;} }

  .result-card{
    background:var(--vanilla-2); border:2px solid var(--ink); border-radius:14px; padding:18px 20px; margin-top:16px;
  }
  .result-card .r-label{font-size:12px; text-transform:uppercase; font-weight:700; opacity:0.55; letter-spacing:0.04em;}
  .result-card .r-value{font-family:'Space Grotesk'; font-size:26px; font-weight:700; margin-top:4px;}

  table{width:100%; border-collapse:collapse; margin-top:14px; font-size:14px;}
  th,td{text-align:left; padding:9px 10px; border-bottom:2px solid var(--vanilla-2);}
  th{font-size:11px; text-transform:uppercase; opacity:0.55; letter-spacing:0.04em;}

  .pill{display:inline-block; padding:4px 11px; border-radius:99px; border:2px solid var(--ink); font-size:12px; font-weight:700; margin:2px 4px 2px 0;}
  .pill-blue{background:#DCE4FF;} .pill-pink{background:#FFDCEE;} .pill-orange{background:#FFE5D0;}

  .hidden{display:none !important;}
  .footer-note{margin-top:60px; text-align:center; font-size:12.5px; opacity:0.45;}

  .mobile-topbar{display:none;}
  @media (max-width: 860px){
    .app{flex-direction:column;}
    .sidebar{
      position:relative; width:100%; height:auto; padding:16px 18px;
      display:none;
    }
    .sidebar.open{display:block;}
    .mobile-topbar{
      display:flex; align-items:center; justify-content:space-between;
      background:var(--ink); color:var(--vanilla); padding:14px 18px; position:sticky; top:0; z-index:5;
    }
    .main{padding:22px 16px 60px;}
    .hero{padding:28px 22px;}
    .hero h1{font-size:30px;}
  }
