  :root {
      --bg: #0a0a0f;
      --surface: #13131a;
      --surface2: #1c1c26;
      --border: #2a2a3a;
      --accent: #6c63ff;
      --accent2: #ff6584;
      --green: #4ade80;
      --red: #f87171;
      --yellow: #fbbf24;
      --text: #e8e8f0;
      --muted: #7878a0;
    }

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

    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
    }

    /* Header */
    header {
      border-bottom: 1px solid var(--border);
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: sticky;
      top: 0;
      background: rgba(10,10,15,0.95);
      backdrop-filter: blur(10px);
      z-index: 100;
    }

    .logo {
      font-size: 1.1rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      text-decoration: none;
      color: var(--text);
    }

    .logo span { color: var(--accent); }

    nav {
      display: flex;
      gap: 0.25rem;
    }

    nav a {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.8rem;
      padding: 0.4rem 0.85rem;
      border-radius: 8px;
      transition: all 0.15s;
      font-weight: 500;
    }

    nav a:hover, nav a.active {
      color: var(--text);
      background: var(--surface2);
    }

    nav a.active {
      color: var(--accent);
    }

    /* Hero */
    .hero {
      text-align: center;
      padding: 4rem 1.5rem 2rem;
      max-width: 700px;
      margin: 0 auto;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: rgba(108,99,255,0.12);
      border: 1px solid rgba(108,99,255,0.25);
      color: var(--accent);
      border-radius: 999px;
      padding: 0.3rem 1rem;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
    }

    .hero h1 {
      font-size: clamp(1.8rem, 5vw, 2.8rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.15;
      margin-bottom: 1rem;
    }

    .hero h1 em {
      font-style: normal;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero p {
      color: var(--muted);
      font-size: 1rem;
      line-height: 1.6;
      max-width: 42ch;
      margin: 0 auto;
    }

    /* Tools nav */
    .tools-nav {
      display: flex;
      gap: 0.5rem;
      justify-content: center;
      flex-wrap: wrap;
      padding: 2rem 1.5rem 0;
      max-width: 900px;
      margin: 0 auto;
    }

    .tool-tab {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.55rem 1.1rem;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--muted);
      font-size: 0.8rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s;
      text-decoration: none;
    }

    .tool-tab:hover {
      border-color: var(--accent);
      color: var(--text);
    }

    .tool-tab.active {
      background: rgba(108,99,255,0.15);
      border-color: var(--accent);
      color: var(--accent);
    }

    /* Calculator */
    .calc-wrapper {
      max-width: 900px;
      margin: 2rem auto;
      padding: 0 1.5rem 4rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
    }

    .calc-panel {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 1.75rem;
    }

    .panel-title {
      font-size: 0.72rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .field {
      margin-bottom: 1.25rem;
    }

    .field label {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.82rem;
      font-weight: 500;
      color: var(--text);
      margin-bottom: 0.5rem;
    }

    .field label .hint {
      font-size: 0.72rem;
      color: var(--muted);
      font-weight: 400;
    }

    .input-wrap {
      position: relative;
    }

    .input-wrap .prefix {
      position: absolute;
      left: 0.85rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      font-size: 0.9rem;
      font-family: 'JetBrains Mono', monospace;
      pointer-events: none;
    }

    .input-wrap .suffix {
      position: absolute;
      right: 0.85rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      font-size: 0.9rem;
      font-family: 'JetBrains Mono', monospace;
      pointer-events: none;
    }

    input[type="number"] {
      width: 100%;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 0.65rem 2.5rem 0.65rem 2rem;
      font-size: 0.95rem;
      color: var(--text);
      font-family: 'JetBrains Mono', monospace;
      transition: border-color 0.15s;
      -moz-appearance: textfield;
    }

    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
      -webkit-appearance: none;
    }

    input[type="number"]:focus {
      outline: none;
      border-color: var(--accent);
    }

    .no-prefix input {
      padding-left: 0.85rem;
    }

    /* Results panel */
    .result-panel {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 1.75rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .result-main {
      background: var(--surface2);
      border-radius: 12px;
      padding: 1.5rem;
      text-align: center;
      border: 1px solid var(--border);
    }

    .result-main .label {
      font-size: 0.72rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      margin-bottom: 0.5rem;
    }

    .result-main .value {
      font-size: 2.4rem;
      font-weight: 700;
      font-family: 'JetBrains Mono', monospace;
      letter-spacing: -0.02em;
    }

    .value.positive { color: var(--green); }
    .value.negative { color: var(--red); }
    .value.neutral { color: var(--text); }

    .result-main .sub {
      font-size: 0.8rem;
      color: var(--muted);
      margin-top: 0.35rem;
    }

    .result-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.6rem 0;
      border-bottom: 1px solid var(--border);
      font-size: 0.875rem;
    }

    .result-row:last-child { border-bottom: none; }

    .result-row .r-label { color: var(--muted); }
    .result-row .r-value {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 600;
      font-size: 0.9rem;
    }

    .r-value.green { color: var(--green); }
    .r-value.red { color: var(--red); }
    .r-value.yellow { color: var(--yellow); }

    /* Verdict */
    .verdict {
      border-radius: 10px;
      padding: 0.85rem 1rem;
      font-size: 0.85rem;
      font-weight: 500;
      line-height: 1.5;
    }

    .verdict.profit {
      background: rgba(74,222,128,0.1);
      border: 1px solid rgba(74,222,128,0.25);
      color: var(--green);
    }

    .verdict.loss {
      background: rgba(248,113,113,0.1);
      border: 1px solid rgba(248,113,113,0.25);
      color: var(--red);
    }

    .verdict.break {
      background: rgba(251,191,36,0.1);
      border: 1px solid rgba(251,191,36,0.25);
      color: var(--yellow);
    }

    /* Divider */
    .divider {
      height: 1px;
      background: var(--border);
      margin: 0.25rem 0;
    }

    /* Coming soon */
    .coming-soon {
      max-width: 900px;
      margin: 0 auto;
      padding: 0 1.5rem 4rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
    }

    .cs-card {
      background: var(--surface);
      border: 1px dashed var(--border);
      border-radius: 14px;
      padding: 1.25rem;
      opacity: 0.6;
    }

    .cs-card .cs-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
    .cs-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
    .cs-card p { font-size: 0.78rem; color: var(--muted); }
    .cs-tag {
      display: inline-block;
      background: var(--surface2);
      border-radius: 6px;
      padding: 0.2rem 0.5rem;
      font-size: 0.68rem;
      color: var(--muted);
      margin-top: 0.5rem;
    }

    /* Section title */
    .section-title {
      max-width: 900px;
      margin: 0 auto 1rem;
      padding: 0 1.5rem;
      font-size: 0.72rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
    }

    footer {
      border-top: 1px solid var(--border);
      padding: 2rem;
      text-align: center;
      color: var(--muted);
      font-size: 0.78rem;
    }

    footer a { color: var(--muted); text-decoration: none; margin: 0 0.75rem; }
    footer a:hover { color: var(--text); }

    @media (max-width: 640px) {
      .calc-wrapper { grid-template-columns: 1fr; }
      header { padding: 1rem; }
      nav a span { display: none; }
    }