/* ===================================================================
   Talia Trading — clean corporate design system
   Palette: deep navy + azure + teal, warm ivory neutrals
   Type: Sora (display) + Inter (body)
   =================================================================== */

:root {
  /* color */
  --ink:        #0A1B34;
  --navy:       #0C2A54;
  --navy-deep:  #071427;
  --azure:      #1E6BFF;
  --azure-600:  #1858DB;
  --teal:       #12B5C9;
  --gold:       #F2B646;
  --surface:    #F5F8FC;
  --surface-2:  #EAF1FA;
  --white:      #FFFFFF;
  --text:       #14233D;
  --muted:      #5A6B85;
  --muted-light:#A9BCD6;
  --line:       #E2EAF4;
  --line-dark:  rgba(255,255,255,.12);

  /* type scale */
  --text-hero:  clamp(2.6rem, 1.2rem + 5.4vw, 5.2rem);
  --text-h2:    clamp(1.85rem, 1.1rem + 2.6vw, 3rem);
  --text-h3:    1.28rem;
  --text-lede:  clamp(1.06rem, 0.98rem + 0.4vw, 1.22rem);

  /* space & shape */
  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius:     18px;
  --radius-sm:  12px;
  --container:  1160px;
  --shadow-sm:  0 2px 8px rgba(12,42,84,.06);
  --shadow-md:  0 14px 40px -18px rgba(12,42,84,.28);
  --shadow-lg:  0 30px 70px -30px rgba(12,42,84,.45);

  /* motion */
  --dur:        .4s;
  --ease:       cubic-bezier(.16,1,.3,1);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,.brand-word { font-family: "Sora", system-ui, sans-serif; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img,svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--azure); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: "Sora", sans-serif; font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--azure);
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.eyebrow-light { color: var(--teal); }
.eyebrow-light::before { background: var(--gold); }

.lede { font-size: var(--text-lede); color: var(--muted); }
.grad-text { background: linear-gradient(100deg,#7FB2FF, #12B5C9); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section { padding-block: var(--space-section); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--text-h2); margin-bottom: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: .98rem;
  padding: .92rem 1.7rem; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-primary { background: var(--azure); color: #fff; box-shadow: 0 10px 24px -10px rgba(30,107,255,.7); }
.btn-primary:hover { background: var(--azure-600); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(30,107,255,.8); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); transform: translateY(-2px); }
.section-serve .btn-primary, .section-contact .btn-primary { margin-top: 2rem; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-word { font-weight: 800; font-size: 1.24rem; color: var(--ink); letter-spacing: -.02em; }
.brand-word-sub { color: var(--azure); font-weight: 700; margin-left: .12em; }
.brand-mark svg { filter: drop-shadow(0 4px 8px rgba(30,107,255,.28)); }

nav[aria-label="Primary"] { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a { font-size: .96rem; font-weight: 500; color: var(--text); position: relative; padding: .3rem 0; }
.nav-menu a:not(.nav-cta a)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--azure); border-radius: 2px; transition: width var(--dur) var(--ease);
}
.nav-menu li:not(.nav-cta) a:hover { color: var(--azure); }
.nav-menu li:not(.nav-cta) a:hover::after { width: 100%; }
.nav-cta a {
  background: var(--ink); color: #fff; padding: .62rem 1.15rem; border-radius: 999px; font-weight: 600;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-cta a:hover { background: var(--azure); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.nav-toggle-bar { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; padding-block: clamp(4.5rem, 3rem + 9vw, 9rem); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1000px 520px at 78% -8%, rgba(18,181,201,.30), transparent 60%),
    radial-gradient(900px 600px at 12% 110%, rgba(30,107,255,.42), transparent 55%),
    linear-gradient(160deg, #0A1B34 0%, #0C2A54 55%, #07203F 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(circle at 50% 20%, #000 20%, transparent 72%);
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero-title { font-size: var(--text-hero); font-weight: 800; color: #fff; margin-bottom: 1.4rem; }
.hero-sub { font-size: var(--text-lede); color: #C6D6EE; max-width: 620px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-points {
  display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.2rem,4vw,2.4rem); margin-top: 3.4rem;
  padding-top: 2.4rem; border-top: 1px solid var(--line-dark);
}
.hero-points li { display: flex; flex-direction: column; gap: .35rem; position: relative; padding-left: 1.1rem; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 3px; height: 1.3rem; border-radius: 3px; background: linear-gradient(var(--azure), var(--teal)); }
.hp-title { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: -.01em; }
.hp-text { font-size: .9rem; color: var(--muted-light); line-height: 1.5; }

/* ---------- strip ---------- */
.strip { background: var(--ink); color: #fff; }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem; padding-block: 1.1rem; font-family: "Sora",sans-serif; font-weight: 600; font-size: .92rem; letter-spacing: .01em; }
.strip-dot { color: var(--teal); font-size: .6rem; }

/* ---------- about ---------- */
.section-about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.about-lead h2 { font-size: var(--text-h2); margin-bottom: 1.3rem; }
.about-lead p + p { margin-top: 1rem; }
.vm-stack { display: grid; gap: 1.2rem; }
.vm-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.7rem 1.8rem;
  position: relative; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.vm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.vm-icon { color: var(--teal); font-size: .8rem; }
.vm-card h3 { font-size: var(--text-h3); margin: .5rem 0 .5rem; }
.vm-card p { color: var(--muted); font-size: .98rem; }

/* ---------- services ---------- */
.section-services { background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); }
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.3rem; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem 1.8rem;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--azure), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.service-num { font-family: "Sora",sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--surface-2); -webkit-text-stroke: 1px var(--muted-light); }
.service-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(150deg, rgba(30,107,255,.12), rgba(18,181,201,.14)); color: var(--azure); }
.service-card h3 { font-size: var(--text-h3); margin-bottom: .25rem; }
.service-tag { font-family: "Sora",sans-serif; font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); margin-bottom: .7rem; }
.service-card > p { color: var(--muted); font-size: .95rem; }
.service-list { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.service-list li { position: relative; padding-left: 1.3rem; font-size: .9rem; color: var(--text); }
.service-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--azure); transform: rotate(45deg); }

/* ---------- approach ---------- */
.section-approach { background: var(--ink); color: #fff; }
.section-approach .eyebrow { color: var(--teal); }
.section-approach h2 { color: #fff; }
.approach-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.3rem; counter-reset: step; }
.approach-step { position: relative; padding: 1.9rem 1.5rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.approach-step:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.approach-num { font-family: "Sora",sans-serif; font-weight: 800; font-size: 2.2rem; background: linear-gradient(120deg,#5E9BFF,#12B5C9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.approach-step h3 { color: #fff; font-size: 1.18rem; margin: .6rem 0 .5rem; }
.approach-step p { color: #B4C6E1; font-size: .95rem; }

/* ---------- why ---------- */
.section-why { background: var(--surface); }
.why-grid-wrap { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.why-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.1rem; }
.why-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.5rem; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.why-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-tile h3 { font-size: 1.08rem; margin-bottom: .45rem; color: var(--navy); }
.why-tile p { color: var(--muted); font-size: .93rem; }

/* ---------- serve ---------- */
.section-serve { background: linear-gradient(160deg,#0C2A54,#0A1B34); color: #fff; overflow: hidden; }
.serve-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.serve-text h2 { color: #fff; font-size: var(--text-h2); margin-bottom: 1.5rem; }
.serve-list { display: grid; gap: .85rem; margin-bottom: .5rem; }
.serve-list li { position: relative; padding-left: 1.8rem; color: #CFDDF2; }
.serve-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700; }
.serve-visual { display: grid; place-items: center; min-height: 320px; }
.orbit { position: relative; width: 300px; height: 300px; display: grid; place-items: center; }
.orbit::before, .orbit::after { content: ""; position: absolute; border: 1px dashed rgba(255,255,255,.18); border-radius: 50%; }
.orbit::before { width: 300px; height: 300px; }
.orbit::after { width: 195px; height: 195px; border-style: solid; border-color: rgba(18,181,201,.25); }
.orbit-core { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; font-family: "Sora",sans-serif; font-weight: 800; font-size: 1.35rem; color: #fff; background: linear-gradient(150deg, var(--azure), var(--teal)); box-shadow: 0 20px 45px -14px rgba(18,181,201,.7); }
.orbit-chip { position: absolute; font-family: "Sora",sans-serif; font-weight: 600; font-size: .82rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(4px); color: #fff; }
.chip-1 { top: 2%; left: 50%; transform: translateX(-50%); }
.chip-2 { top: 50%; right: -6%; transform: translateY(-50%); }
.chip-3 { bottom: 2%; left: 50%; transform: translateX(-50%); }
.chip-4 { top: 50%; left: -8%; transform: translateY(-50%); }

/* ---------- contact ---------- */
.section-contact { background: var(--white); }
.contact-inner .section-head { max-width: 620px; margin-inline: auto; text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; max-width: 780px; margin-inline: auto; }
.contact-card {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.6rem 1.8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--azure); }
.contact-k { font-family: "Sora",sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.contact-v { font-size: 1.12rem; font-weight: 600; color: var(--navy); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #fff; padding-block: 3.2rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.footer-wordmark { font-family: "Sora",sans-serif; font-weight: 800; font-size: 1.5rem; }
.footer-accent { color: var(--teal); }
.footer-tagline { color: var(--muted-light); margin-top: .5rem; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.footer-links a { color: #C6D6EE; font-size: .93rem; transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-copy { grid-column: 1 / -1; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); color: var(--muted-light); font-size: .86rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .about-grid, .why-grid-wrap, .serve-inner, .footer-inner { grid-template-columns: 1fr; }
  .services-grid, .approach-grid { grid-template-columns: repeat(2,1fr); }
  .serve-visual { order: -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: .5rem 1.2rem 1.4rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform var(--dur) var(--ease);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-menu a { display: block; padding: .95rem .2rem; }
  .nav-cta a { display: inline-block; margin-top: .7rem; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 540px) {
  .services-grid, .approach-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-points { grid-template-columns: 1fr; gap: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
