:root {
    --layout-width: 1420px;
    --side-width: 280px;
    --center-width: 660px;
    --gap: 34px;
    --card-radius: 24px;
  }

  body.homepage .top-header { display: none !important; }
  body.homepage .sidebar { display: none !important; }

  body.homepage {
    overflow: hidden !important;
  }

  body.homepage .app-main {
    position: static !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background:
      radial-gradient(circle at 50% 18%, rgba(255,255,255,.08), transparent 18%),
      radial-gradient(circle at 18% 24%, rgba(170,183,198,.08), transparent 20%),
      radial-gradient(circle at 82% 20%, rgba(120,138,160,.08), transparent 22%),
      linear-gradient(180deg, #090d12 0%, #0e141b 46%, #111923 100%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
  }

  .homepage-shell {
    width: min(var(--layout-width), calc(100% - 48px));
    display: grid;
    grid-template-columns: var(--side-width) minmax(540px, var(--center-width)) var(--side-width);
    align-items: center;
    justify-content: center;
    gap: var(--gap);
    box-sizing: border-box;
  }

  .features-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    min-width: 0;
    position: relative;
    z-index: 1;
  }

  .features-col.left-col {
    align-self: center;
  }

  .features-col.right-col {
    align-self: center;
    transform: translateY(10px);
  }

  .feature-card {
    padding: 18px 18px 20px;
    border: 1px solid rgba(255,255,255,.08);
    background:
      linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
      rgba(14, 20, 28, 0.92);
    box-shadow:
      0 16px 36px rgba(0,0,0,.24),
      inset 0 1px 0 rgba(255,255,255,.03);
    text-align: left;
    border-radius: 24px;
    overflow: hidden;
  }

  .feature-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #dfe5ec;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .feature-card strong {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.25;
  }

  .feature-card p {
    margin: 0;
    color: #b5c0cc;
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .welcome-container {
    width: 100%;
    max-width: var(--center-width);
    padding: 24px 34px 30px;
    text-align: center;
    position: relative;
    z-index: 3;
    background:
      radial-gradient(circle at top center, rgba(255,255,255,.08), transparent 28%),
      rgba(10, 18, 30, 0.78);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow:
      0 24px 54px rgba(0,0,0,.30),
      0 8px 20px rgba(0,0,0,.22),
      inset 0 1px 0 rgba(255,255,255,.03);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    overflow: hidden;
    justify-self: center;
    box-sizing: border-box;
  }

  .welcome-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 42%);
    pointer-events: none;
  }

  .hero-layer {
    position: relative;
    min-height: 360px;
  }

  .home-title {
    margin: 0 0 4px;
    color: #dfe4ec;
    font-size: clamp(34px, 4.3vw, 56px);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    position: relative;
    z-index: 3;
  }

  .logo-block {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 2px;
    position: relative;
    z-index: 3;
  }

  .main-logo {
    display: block;
    width: min(350px, 56vw);
    margin: 0 auto;
    filter: drop-shadow(0 14px 32px rgba(0,0,0,0.34));
  }

  .hero-fade {
    position: absolute;
    color: rgba(215, 224, 235, 0.28);
    font-size: clamp(18px, 2vw, 30px);
    font-weight: 700;
    letter-spacing: 0.03em;
    filter: blur(3.2px);
    text-shadow:
      0 0 14px rgba(215, 224, 235, 0.12),
      0 0 28px rgba(120, 145, 180, 0.08);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    z-index: 1;
  }

  .hero-fade.left-top {
    top: 18px;
    left: 2px;
  }

  .hero-fade.right-top {
    top: 74px;
    right: 10px;
  }

  .hero-fade.left-bottom {
    bottom: 88px;
    left: 18px;
  }

  .hero-fade.right-bottom {
    bottom: 36px;
    right: 12px;
  }

  .subtitle {
    margin: -4px 0 18px;
    color: #cfd6e1;
    font-size: clamp(18px, 2vw, 24px);
    font-style: italic;
    letter-spacing: 0.16em;
    line-height: 1.3;
    position: relative;
    z-index: 3;
  }

  .welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 3;
  }

  .btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    box-sizing: border-box;
    background: rgba(255,255,255,.92);
    color: #101317;
    padding: 16px 40px;
    border-radius: 14px;
    font-size: 1.16em;
    font-weight: 700;
    border: 1.5px solid rgba(255,255,255,.95);
    text-decoration: none;
    text-align: center;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
  }

  .btn-main:hover {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,.4);
    transform: translateY(-1px);
  }

  .btn-alt {
    background: transparent;
    color: #edf1f6;
    border-color: rgba(255,255,255,.18);
  }

  .btn-alt:hover {
    background: rgba(255,255,255,.08);
    color: #ffffff;
    border-color: rgba(255,255,255,.30);
  }

  @media (max-width: 1380px) {
    :root {
      --layout-width: 1320px;
      --side-width: 250px;
      --center-width: 600px;
      --gap: 24px;
    }
  }

  @media (max-width: 1160px) {
    :root {
      --side-width: 220px;
      --center-width: 540px;
      --gap: 18px;
    }

    .feature-card {
      padding: 16px 14px 18px;
      border-radius: 20px;
    }

    .welcome-container {
      padding: 22px 24px 28px;
      border-radius: 26px;
    }

    .hero-layer {
      min-height: 330px;
    }
  }

  @media (max-width: 940px) {
    body.homepage {
      overflow-y: auto !important;
    }

    body.homepage .app-main {
      height: auto !important;
      min-height: 100vh !important;
      overflow-y: visible !important;
    }

    .homepage-shell {
      width: min(100%, 720px);
      grid-template-columns: 1fr;
      gap: 20px;
      padding: 20px 16px 28px;
    }

    .features-col {
      display: none;
    }

    .welcome-container {
      max-width: 620px;
    }
  }

  @media (max-width: 600px) {
    .homepage-shell {
      width: 100%;
      padding: 16px 12px 24px;
    }

    .welcome-container {
      width: 100%;
      max-width: 100%;
      padding: 18px 14px 24px;
      border-radius: 22px;
    }

    .hero-layer {
      min-height: 310px;
    }

    .main-logo {
      width: min(180px, 54vw);
    }

    .subtitle {
      margin: -2px 0 16px;
      letter-spacing: 0.12em;
    }

    .welcome-actions {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
    }

    .welcome-actions .btn-main {
      width: min(240px, 100%);
      max-width: 100%;
      min-width: 0;
      padding: 14px 22px;
      box-sizing: border-box;
      text-align: center;
    }

    .hero-fade {
      font-size: 18px;
    }
  }
