/* ===============================
   TRIZAN GLOBAL THEME
   =============================== */

   :root {
    --bg: #070915;              /* slightly lighter */
    --bg-alt: #080a18;
    --bg-elevated: #3475be;
    --bg-glass: rgba(18, 22, 38, 0.9);
  
    --accent: #5ad2ff;          /* baby blue */
    --accent-strong: #00b4ff;
    --accent-soft: #9cdaf5;     /* a touch brighter */
  
    --text: #fdfdfd;
    --text-soft: #d2d7e8;       /* brighter for readability */
    --border-subtle: rgba(255, 255, 255, 0.1);
  
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;
  
    --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.6);
    --shadow-sharp: 0 16px 40px rgba(0, 0, 0, 0.8);
    --blur-lg: 26px;
  
    --transition-fast: 140ms ease-out;
    --transition-med: 220ms ease-out;
    --transition-slow: 420ms ease-out;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #181c3a 0, var(--bg) 55%, var(--bg) 100%);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    position: relative;
  }
  
  /* Background aura */
  
  .page-gradient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at top right, rgba(90, 210, 255, 0.5), transparent 60%),
      radial-gradient(circle at 0% 70%, rgba(167, 227, 255, 0.35), transparent 60%);
    opacity: 0.9;
    mix-blend-mode: screen;
    z-index: -2;
  }
  
  /* Layout */
  
  .container {
    width: min(1160px, 100% - 2.8rem);
    margin-inline: auto;
  }
  
  .section {
    padding: 5rem 0 4.3rem;
  }
  
  .section-tight {
    padding: 3.8rem 0 3.4rem;
  }
  
  .section-alt {
    background: linear-gradient(to bottom, rgba(11, 14, 34, 0.98), rgba(7, 9, 20, 0.98));
  }
  
  .section-inner {
    position: relative;
    z-index: 1;
  }
  
  .section-header {
    max-width: 660px;
    margin-bottom: 2.7rem;
  }
  
  .section-header h1,
  .section-header h2 {
    font-size: clamp(2rem, 2.8vw, 2.6rem);
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
  }
  
  .section-header p {
    color: var(--text-soft);
    font-size: 0.97rem;
    line-height: 1.7;
  }
  
  /* ===============================
     HEADER & NAV
     =============================== */
  
  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(22px);
    background: linear-gradient(
      to bottom,
      rgba(5, 7, 16, 0.98),
      rgba(5, 7, 16, 0.86),
      rgba(5, 7, 16, 0.35),
      transparent
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
  }
  
  /* Branding */
  
  .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
  }
  
  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 18px;
    background: radial-gradient(circle at 28% 22%, #ffffff, rgba(255,255,255,0)) ,
                linear-gradient(135deg, #5ad2ff, #a7e3ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
  }
  
  .brand-text {
    display: flex;
    flex-direction: column;
  }
  
  .brand-name {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .brand-tagline {
    font-size: 0.7rem;
    opacity: 0.7;
  }
  
  /* Nav */
  
  .nav {
    display: flex;
    align-items: center;
    gap: 1.7rem;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0;
    padding: 0.35rem 0.4rem;
    border-radius: 999px;
    background: radial-gradient(circle at top left, rgba(90, 210, 255, 0.2), rgba(8, 10, 22, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links a {
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-med), color var(--transition-med), transform var(--transition-fast);
  }
  
  .nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
  }
  
  .nav-links .nav-cta {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    color: #020309;
    font-weight: 600;
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.7);
  }
  
  .nav-links .nav-cta:hover {
    background: linear-gradient(120deg, var(--accent-soft), var(--accent-strong));
  }
  
  /* Mobile nav toggle */
  
  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.24rem;
    background: none;
    border: none;
    padding: 0.3rem;
    cursor: pointer;
  }
  
  .nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }
  
  .nav-toggle.active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }
  
  /* ===============================
     HERO (HOME) + BALL ANIMATION
     =============================== */
  
  .hero {
    padding: 4.8rem 0 4.4rem;
    position: relative;
    overflow: hidden;
  }
  
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
    gap: 3.4rem;
    align-items: center;
  }
  
  /* Ball breaking through barriers visual */
  
  .hero-visual {
    position: relative;
    height: 320px;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left, rgba(90, 210, 255, 0.22), rgba(13, 16, 32, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
  }
  
  .hero-walls {
    position: absolute;
    inset: 20% 10%;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
  }
  
  .hero-wall {
    flex: 1;
    border-radius: 18px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.16), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
  }
  
  .hero-wall::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.08) 1px,
      transparent 1px,
      transparent 5px
    );
    opacity: 0.7;
  }
  
  /* ball */
  
  .hero-ball {
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 30% 20%, #ffffff, transparent 60%),
      radial-gradient(circle at 80% 90%, rgba(90,210,255,0.9), rgba(0,0,0,0.1));
    box-shadow: 0 0 30px rgba(90,210,255,0.9);
    top: 50%;
    left: -80px;
    transform: translateY(-50%);
    animation: ball-breakthrough 4.2s infinite cubic-bezier(0.19, 1, 0.22, 1);
  }
  
  /* "Cracks" where ball passes */
  
  .hero-crack {
    position: absolute;
    width: 12px;
    height: 60%;
    top: 20%;
    left: 50%;
    border-radius: 999px;
    background: linear-gradient(to bottom, rgba(90,210,255,0.7), rgba(90,210,255,0));
    opacity: 0;
    transform: translateX(-50%);
    animation: crack-fade 4.2s infinite cubic-bezier(0.19, 1, 0.22, 1);
  }
  
  /* ball animation keyframes */
  
  @keyframes ball-breakthrough {
    0% {
      left: -80px;
      transform: translateY(-50%) scale(0.9);
    }
    25% {
      left: 30%;
      transform: translateY(-50%) scale(1.02);
    }
    50% {
      left: 70%;
      transform: translateY(-50%) scale(0.98);
    }
    70% {
      left: 115%;
      transform: translateY(-50%) scale(1.03);
    }
    100% {
      left: 115%;
      transform: translateY(-50%) scale(1.03);
    }
  }
  
  @keyframes crack-fade {
    0%,
    20% {
      opacity: 0;
    }
    35% {
      opacity: 0.9;
    }
    55% {
      opacity: 0.4;
    }
    80%,
    100% {
      opacity: 0;
    }
  }
  
  .hero-crack--middle {
    animation-delay: 0.3s;
  }
  
  /* Hero content */
  
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.9rem;
    border-radius: var(--radius-pill);
    background: rgba(10, 12, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.7rem;
    color: var(--text-soft);
  }
  
  .hero-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(90,210,255,0.9);
  }
  
  .hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    letter-spacing: 0.05em;
    line-height: 1.02;
    margin: 1.2rem 0 0.8rem;
  }
  
  .hero-highlight {
    color: var(--accent-soft);
  }
  
  .hero-subtitle {
    color: var(--text-soft);
    max-width: 540px;
    font-size: 0.98rem;
    line-height: 1.7;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.6rem 0 1.25rem;
  }
  
  /* Buttons */
  
  .btn {
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.7rem 1.3rem;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    transition:
      transform var(--transition-fast),
      box-shadow var(--transition-fast),
      background var(--transition-med),
      color var(--transition-med);
    white-space: nowrap;
  }
  
  .btn-primary {
    background: linear-gradient(125deg, var(--accent), var(--accent-strong));
    color: #020309;
    box-shadow: var(--shadow-soft);
  }
  
  .btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: var(--shadow-sharp);
  }
  
  .btn-ghost {
    background: rgba(8, 10, 24, 0.98);
    color: var(--text-soft);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .btn-ghost:hover {
    background: rgba(13, 16, 32, 0.98);
    color: var(--text);
  }
  
  .btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
  }
  
  .btn-outline:hover {
    background: rgba(90, 210, 255, 0.12);
  }
  
  .btn-sm {
    padding: 0.55rem 1.05rem;
    font-size: 0.8rem;
  }
  
  .btn-block {
    width: 100%;
  }
  
  /* Hero stats */
  
  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.3rem;
    margin-top: 1.6rem;
    font-size: 0.78rem;
    color: var(--text-soft);
  }
  
  .hero-meta > div {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
  }
  
  .meta-label {
    opacity: 0.82;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.74rem;
  }
  
  .meta-value {
    font-weight: 500;
  }
  
  /* ===============================
     CARDS & GRIDS
     =============================== */
  
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
  }
  
  .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
  }
  
  .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
  }
  
  .card {
    background: #111628;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.3rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.7;
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), background var(--transition-med);
  }
  
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(0,0,0,0.5);
    border-color: rgba(90, 210, 255, 0.45);
    background: #151b31;
  }
  
  /* Metric cards */
  
  .metric-card {
    background: linear-gradient(135deg, #111628, #181f3a);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.16);
    padding: 1.3rem 1.2rem;
    position: relative;
    overflow: hidden;
  }
  
  .metric-label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.45rem;
  }
  
  .metric-value {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
  }
  
  .metric-sub {
    font-size: 0.8rem;
    color: var(--text-soft);
  }
  
  /* Portfolio cards */
  
  .portfolio-card {
    background: #111628;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 1.05rem 1rem;
    font-size: 0.86rem;
    line-height: 1.7;
  }
  
  .portfolio-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.26);
    font-size: 0.7rem;
  }
  
  /* Values list */
  
  .values-list {
    padding-left: 1.2rem;
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
  }
  
  /* ===============================
     QUIZZES & WIZARDS
     =============================== */
  
  .quiz-card {
    background: #141a30;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.16);
    padding: 1.4rem 1.3rem;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  }
  
  .quiz-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
  }
  
  .quiz-step-pill {
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.14);
    opacity: 0.7;
  }
  
  .quiz-step-pill.active {
    border-color: var(--accent);
    color: var(--accent-soft);
    opacity: 1;
  }
  
  .quiz-question {
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
  }
  
  .quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
  }
  
  .quiz-options label {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
  }
  
  .quiz-options input[type="radio"] {
    accent-color: var(--accent);
  }
  
  .quiz-result {
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px dashed rgba(255,255,255,0.16);
    font-size: 0.9rem;
    color: #e8f4ff;   /* higher contrast */
  }
  
  /* Case filters */
  
  .case-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.3rem;
  }
  
  .filter-pill {
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(10, 12, 26, 0.98);
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--text-soft);
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  }
  
  .filter-pill.active {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    border-color: transparent;
    color: #020309;
  }
  
  /* ===============================
     FORMS
     =============================== */
  
  .form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
  }
  
  .form-row label {
    font-size: 0.8rem;
    opacity: 0.9;
  }
  
  input,
  textarea,
  select {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(10, 12, 26, 0.98);
    padding: 0.7rem 0.8rem;
    font: inherit;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  }
  
  input::placeholder,
  textarea::placeholder {
    color: rgba(210, 215, 235, 0.7);
  }
  
  input:focus,
  textarea:focus,
  select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(90,210,255,0.6);
    background: rgba(15, 18, 36, 0.98);
  }
  
  textarea {
    resize: vertical;
  }
  
  /* ===============================
     STICKY CTA
     =============================== */
  
  .sticky-cta {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 45;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.4rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #020309;
    font-size: 0.86rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 18px 40px rgba(0,0,0,0.75);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  }
  
  .sticky-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sharp);
  }
  
  .sticky-cta-icon {
    font-size: 1rem;
  }
  
  /* ===============================
     FOOTER
     =============================== */
  
  .site-footer {
    padding: 1.6rem 0 1.8rem;
    background: linear-gradient(to top, rgba(3,5,12,1), rgba(3,5,12,0.9), transparent);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  
  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-soft);
  }
  
  .footer-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  
  .footer-links a {
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.18);
    background: #111628;
  }
  
  /* ===============================
     REVEAL ANIMATIONS
     =============================== */
  
  [data-animate] {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 520ms cubic-bezier(0.19, 1, 0.22, 1),
      transform 620ms cubic-bezier(0.19, 1, 0.22, 1);
  }
  
  [data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  [data-animate="fade-left"] {
    transform: translateX(22px);
  }
  
  [data-animate="fade-left"].is-visible {
    transform: translateX(0);
  }
  
  [data-animate="fade-right"] {
    transform: translateX(-22px);
  }
  
  [data-animate="fade-right"].is-visible {
    transform: translateX(0);
  }
  
  /* ===============================
     RESPONSIVE
     =============================== */
  
  @media (max-width: 1040px) {
    .hero-inner {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .hero-visual {
      order: -1;
      margin-bottom: 1.6rem;
    }
  
    .grid-3,
    .grid-4 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 820px) {
    .header-inner {
      padding-inline: 0;
    }
  
    .nav-toggle {
      display: flex;
    }
  
    .nav-links {
      position: absolute;
      top: 100%;
      right: 1.2rem;
      padding: 0.6rem;
      background: rgba(3, 5, 12, 0.99);
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.14);
      flex-direction: column;
      align-items: flex-start;
      min-width: 9.5rem;
      transform-origin: top right;
      transform: scale(0.96) translateY(-6px);
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--transition-med), transform var(--transition-med);
    }
  
    .nav-links.show {
      opacity: 1;
      pointer-events: auto;
      transform: scale(1) translateY(0);
    }
  
    .nav-links a {
      width: 100%;
      justify-content: flex-start;
    }
  
    .grid-3,
    .grid-4 {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .grid-2 {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .contact-inner {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    .section {
      padding: 4rem 0 3.4rem;
    }
  
    .hero-actions {
      flex-direction: column;
      align-items: stretch;
    }
  
    .footer-inner {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .sticky-cta {
      right: 0.9rem;
      bottom: 0.9rem;
    }
  }
/* FOOTER – share the exact same background as <body> */
.site-footer {
  /* same gradient as body */
  background: radial-gradient(circle at top, #15182f 0, #05060a 55%, #05060a 100%);
  border-top: none;          /* no line between body and footer */
}
/* If you previously created .trizan-footer with its own gradient, neutralize it */
.trizan-footer {
  background: none;          /* inherit .site-footer (same as body) */
}


