/* =========================================================
   Corelynix — Shared Design System
   Tokens: Core Black / Deep Navy / Electric Cyan / Ice Cyan / Cloud White / Slate
   Type: Sora (display) + Inter (body)
   ========================================================= */

:root{
  --core-black:#0B0F14;
  --deep-navy:#101A2B;
  --panel:#0F1622;
  --panel-alt:#0C1119;
  --electric-cyan:#18D5E8;
  --ice-cyan:#A7F3FA;
  --mid-blue:#3E7BFA;
  --violet:#8B5CF6;
  --cloud-white:#F7F9FC;
  --slate:#64748B;
  --text-soft:#C7D0DC;
  --slate-soft:rgba(100,116,139,0.28);
  --line:rgba(255,255,255,0.07);
  --x-gradient: linear-gradient(90deg, var(--electric-cyan) 0%, var(--mid-blue) 52%, var(--violet) 100%);
  --radius:14px;
  --radius-sm:9px;
  --maxw:1180px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--core-black);
  color:var(--cloud-white);
  font-family:'Inter',sans-serif;
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.brand{ font-family:'Sora',sans-serif; font-weight:600; letter-spacing:-0.01em; margin:0; }
p{margin:0;}
a{color:inherit; text-decoration:none;}
ul{margin:0; padding:0; list-style:none;}
img,svg{display:block; max-width:100%;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 28px;}
.wrap-narrow{max-width:760px; margin:0 auto; padding:0 28px;}

/* ---------- Header / Nav ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(11,15,20,0.82);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 28px; max-width:var(--maxw); margin:0 auto; }
.logo{ display:flex; align-items:center; gap:9px; font-size:19px; }
.x-mark{
  width:22px; height:22px; border-radius:6px; flex-shrink:0;
  background:var(--x-gradient);
  display:flex; align-items:center; justify-content:center;
  font-family:'Sora',sans-serif; font-weight:700; font-size:13px; color:var(--core-black);
}
.nav-links{ display:flex; align-items:center; gap:32px; font-size:14.5px; font-weight:500; color:var(--slate);}
.nav-links a{ transition:color .2s ease; }
.nav-links a:hover, .nav-links a.current{ color:var(--cloud-white); }
.nav-links a.current{ position:relative; }
.nav-links a.current::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background:var(--x-gradient); border-radius:2px;
}
.nav-cta{
  padding:10px 18px; border-radius:8px; font-size:14px; font-weight:600;
  background:var(--x-gradient); color:var(--core-black);
  white-space:nowrap;
}
.menu-btn{ display:none; background:none; border:0; width:34px; height:34px; cursor:pointer; }
.menu-btn span{ display:block; width:20px; height:2px; background:var(--cloud-white); margin:5px auto; }

/* ---------- Buttons ---------- */
.btn-primary{
  display:inline-block; padding:13px 24px; border-radius:var(--radius-sm); font-weight:600; font-size:14.5px;
  background:var(--x-gradient); color:var(--core-black); border:0; cursor:pointer; font-family:'Inter',sans-serif;
}
.btn-secondary{
  display:inline-block; padding:13px 22px; border-radius:var(--radius-sm); font-weight:600; font-size:14.5px;
  border:1px solid var(--slate-soft); color:var(--cloud-white); background:none; cursor:pointer; font-family:'Inter',sans-serif;
}

/* ---------- Section shells ---------- */
section{ padding:84px 0; border-top:1px solid var(--line); position:relative; overflow:hidden; }
.section-head{ max-width:620px; margin-bottom:48px; }
.section-head.center{ max-width:640px; margin-left:auto; margin-right:auto; text-align:center; }
.section-head p{ color:var(--slate); margin-top:14px; font-size:15.5px; }
.section-head h2{ font-size:clamp(24px,3vw,34px); line-height:1.2; margin-top:16px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ice-cyan); border:1px solid var(--slate-soft); padding:6px 12px; border-radius:99px;
}
.eyebrow::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--x-gradient); flex-shrink:0; }
.breadcrumb{ font-size:13px; color:var(--slate); padding-top:22px; }
.breadcrumb span{ color:var(--ice-cyan); }

/* ambient background texture */
.dot-grid{
  position:absolute; inset:0; pointer-events:none; opacity:.35;
  background-image:radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size:26px 26px;
  mask-image:radial-gradient(ellipse 60% 50% at 50% 0%, #000 40%, transparent 90%);
}
.glow{
  position:absolute; width:520px; height:520px; border-radius:50%; filter:blur(120px); opacity:.18; pointer-events:none;
  background:var(--x-gradient);
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero{ padding:56px 0 70px; }
.page-hero h1{ font-size:clamp(30px,4vw,44px); line-height:1.14; margin-top:18px; max-width:680px; }
.page-hero h1 em{ font-style:normal; background:var(--x-gradient); -webkit-background-clip:text; background-clip:text; color:transparent; }
.page-hero p.lede{ font-size:16.5px; color:var(--text-soft); max-width:560px; margin-top:18px; }

/* ---------- Home hero ---------- */
.hero{ padding:20px 0 70px; }
.hero-grid{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center; margin-top:18px; }
.hero h1{ font-size:clamp(32px,4.4vw,50px); line-height:1.12; margin-top:20px; }
.hero h1 em{ font-style:normal; background:var(--x-gradient); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p.lede{ font-size:17px; color:var(--text-soft); max-width:520px; margin-top:20px; }
.hero-actions{ display:flex; align-items:center; gap:18px; margin-top:32px; flex-wrap:wrap; }
.hero-meta{ margin-top:30px; display:flex; align-items:center; gap:10px; font-size:13px; color:var(--slate); flex-wrap:wrap; }
.hero-meta .dot{ width:5px; height:5px; border-radius:50%; background:var(--slate); }

/* ---------- Node diagram (used on Zoho Creator page) ---------- */
.diagram{ position:relative; aspect-ratio:1/1; }
.diagram svg{ width:100%; height:100%; }
.node-label{ font-family:'Inter',sans-serif; font-size:11.5px; font-weight:500; fill:var(--text-soft); }
.node-box{ fill:var(--panel); stroke:var(--slate-soft); stroke-width:1; }
.flow-line{ stroke:url(#lineGrad); stroke-width:1.6; fill:none; stroke-dasharray:6 7; animation:flow 2.6s linear infinite; }
@keyframes flow{ to{ stroke-dashoffset:-52; } }
.core-x{ filter:drop-shadow(0 0 22px rgba(24,213,232,.35)); }

/* ---------- Browser / app mockup (home hero graphic) ---------- */
.mockup{
  border-radius:16px; overflow:hidden; border:1px solid var(--line);
  background:var(--panel); box-shadow:0 40px 80px -30px rgba(0,0,0,0.6);
}
.mockup-bar{ display:flex; align-items:center; gap:14px; padding:12px 16px; background:var(--panel-alt); border-bottom:1px solid var(--line); }
.mockup-dots{ display:flex; gap:6px; }
.mockup-dots span{ width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,0.14); }
.mockup-tabs{ display:flex; gap:18px; font-size:12px; color:var(--slate); }
.mockup-tabs span.active{ color:var(--ice-cyan); }
.mockup-body{ display:grid; grid-template-columns:56px 1fr; }
.mockup-side{ background:var(--panel-alt); border-right:1px solid var(--line); padding:16px 0; display:flex; flex-direction:column; align-items:center; gap:18px; }
.mockup-side i{ width:16px; height:16px; border-radius:5px; background:rgba(255,255,255,0.08); display:block; }
.mockup-side i.active{ background:var(--x-gradient); }
.mockup-main{ padding:18px; }
.mockup-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; }
.mockup-stat{ background:var(--core-black); border:1px solid var(--line); border-radius:9px; padding:12px; }
.mockup-stat .k{ font-size:10.5px; color:var(--slate); }
.mockup-stat .v{ font-family:'Sora',sans-serif; font-size:16px; margin-top:4px; }
.mockup-chart{ background:var(--core-black); border:1px solid var(--line); border-radius:9px; padding:14px; display:flex; align-items:flex-end; gap:7px; height:86px; margin-bottom:14px; }
.mockup-chart b{ flex:1; border-radius:4px 4px 0 0; background:linear-gradient(180deg, var(--electric-cyan), var(--mid-blue)); opacity:.85; }
.mockup-table{ background:var(--core-black); border:1px solid var(--line); border-radius:9px; padding:6px 12px; }
.mockup-row{ display:flex; justify-content:space-between; align-items:center; padding:9px 0; font-size:11.5px; border-bottom:1px solid var(--line); color:var(--text-soft); }
.mockup-row:last-child{ border-bottom:none; }
.mockup-row .badge-ok{ color:#5EEAD4; background:rgba(94,234,212,.1); padding:2px 8px; border-radius:99px; font-size:10px; }
.mockup-row .badge-pending{ color:var(--ice-cyan); background:rgba(167,243,250,.1); padding:2px 8px; border-radius:99px; font-size:10px; }

/* ---------- Cards grid (capabilities / services) ---------- */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.card-grid.cols-2{ grid-template-columns:repeat(2,1fr); }
.card-grid.cols-4{ grid-template-columns:repeat(4,1fr); }
.card{ background:var(--core-black); padding:30px 26px; transition:background .25s ease; }
.card:hover{ background:var(--panel); }
.card-icon{ width:34px; height:34px; border-radius:8px; background:rgba(24,213,232,.1); border:1px solid rgba(24,213,232,.25); display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.card-icon svg{ width:16px; height:16px; }
.card h3{ font-size:16.5px; margin-bottom:9px; }
.card p{ font-size:14px; color:var(--slate); line-height:1.55; }

/* ---------- Process list ---------- */
.process-list{ display:flex; flex-direction:column; }
.process-row{ display:grid; grid-template-columns:70px 1fr 1.4fr; gap:26px; padding:26px 0; border-top:1px solid var(--line); align-items:start; }
.process-row:first-child{ border-top:none; }
.process-num{ font-family:'Sora',sans-serif; font-weight:600; font-size:14px; color:var(--slate); padding-top:2px; }
.process-row h3{ font-size:17px; }
.process-row p{ color:var(--slate); font-size:14.5px; }

/* ---------- Badge / credential ---------- */
.badge-block{
  display:inline-flex; align-items:center; gap:12px; padding:14px 18px; border-radius:12px;
  border:1px solid rgba(24,213,232,.28); background:rgba(24,213,232,.06);
}
.badge-block .x-mark{ width:30px; height:30px; border-radius:8px; font-size:16px; }
.badge-block div{ font-size:13.5px; color:var(--text-soft); }
.badge-block strong{ display:block; font-family:'Sora',sans-serif; font-size:14.5px; color:var(--cloud-white); margin-bottom:2px; }

/* ---------- Tag pills ---------- */
.tags{ display:flex; flex-wrap:wrap; gap:9px; }
.tags span{ font-size:12.5px; padding:7px 12px; border-radius:99px; border:1px solid var(--slate-soft); color:var(--slate); }

/* ---------- Quote / testimonial ---------- */
.quote-panel{ border:1px solid var(--line); border-radius:var(--radius); padding:36px; background:linear-gradient(180deg, var(--panel), var(--core-black)); }
.quote-panel .quote{ font-family:'Sora',sans-serif; font-size:19px; line-height:1.5; color:var(--cloud-white); }
.quote-panel .quote span{ color:var(--ice-cyan); }
.quote-attr{ margin-top:18px; font-size:13px; color:var(--slate); }

/* ---------- Industry / value cards with icon ---------- */
.value-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.value-card{ border:1px solid var(--line); border-radius:var(--radius); padding:24px; background:var(--panel); }
.value-card .card-icon{ margin-bottom:16px; }
.value-card h3{ font-size:15px; margin-bottom:8px; }
.value-card p{ font-size:13px; color:var(--slate); }
.value-flow{ margin-top:14px; display:flex; flex-direction:column; gap:6px; font-size:11.5px; color:var(--slate); }
.value-flow b{ color:var(--ice-cyan); font-weight:600; }

/* ---------- Case study cards ---------- */
.case-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.case-card{ border:1px solid var(--line); border-radius:var(--radius); background:var(--panel); padding:30px; display:flex; flex-direction:column; gap:16px; }
.case-card .tags span{ font-size:11px; padding:5px 10px; }
.case-card h3{ font-size:19px; line-height:1.3; }
.case-steps{ display:flex; flex-direction:column; gap:10px; margin-top:4px; }
.case-steps div{ font-size:13px; color:var(--text-soft); padding-left:14px; border-left:2px solid var(--slate-soft); }
.case-steps div b{ display:block; font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--slate); margin-bottom:2px; font-weight:600; }
.case-card .read-more{ margin-top:auto; font-size:13.5px; font-weight:600; color:var(--ice-cyan); display:inline-flex; align-items:center; gap:6px; }

/* ---------- Team ---------- */
.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.team-card{ text-align:center; }
.avatar{
  width:78px; height:78px; border-radius:50%; margin:0 auto 14px; display:flex; align-items:center; justify-content:center;
  font-family:'Sora',sans-serif; font-weight:600; font-size:20px; color:var(--core-black);
  background:var(--x-gradient);
}
.team-card h3{ font-size:15px; }
.team-card p{ font-size:12.5px; color:var(--slate); margin-top:4px; }

/* ---------- CTA banner ---------- */
.cta-banner{
  border-radius:20px; padding:56px; text-align:center;
  background:linear-gradient(160deg, var(--panel) 0%, var(--deep-navy) 100%);
  border:1px solid var(--line); position:relative; overflow:hidden;
}
.cta-banner h2{ font-size:clamp(24px,3.4vw,34px); max-width:600px; margin:0 auto; }
.cta-banner p{ color:var(--text-soft); margin-top:14px; max-width:480px; margin-left:auto; margin-right:auto; }
.cta-banner .hero-actions{ justify-content:center; margin-top:28px; }

/* ---------- Contact ---------- */
.contact-wrap{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; }
.contact-copy p{ color:var(--slate); margin-top:16px; font-size:15px; max-width:400px; }
.contact-info{ margin-top:34px; display:flex; flex-direction:column; gap:12px; font-size:14px; }
.contact-info a{ color:var(--ice-cyan); }
.form-card{ background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:32px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:12.5px; color:var(--slate); margin-bottom:7px; font-weight:500; }
.field input, .field select, .field textarea{
  width:100%; padding:11px 13px; border-radius:8px; border:1px solid rgba(255,255,255,0.1);
  background:var(--core-black); color:var(--cloud-white); font-family:'Inter',sans-serif; font-size:14px;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:2px solid var(--electric-cyan); outline-offset:1px; }
.field textarea{ resize:vertical; min-height:88px; }
.submit-btn{ width:100%; padding:13px; border:0; border-radius:9px; background:var(--x-gradient); color:var(--core-black); font-weight:600; font-size:14.5px; cursor:pointer; font-family:'Inter',sans-serif; }
.form-note{ font-size:12px; color:var(--slate); margin-top:12px; text-align:center; }
.map-graphic{ border:1px solid var(--line); border-radius:var(--radius); padding:26px; background:var(--panel); margin-top:22px; }
.map-graphic svg{ width:100%; height:auto; }

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--line); padding:44px 0 30px; }
.footer-grid{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:24px; }
.footer-tag{ color:var(--slate); font-size:13.5px; margin-top:10px; max-width:280px; }
.footer-links{ display:flex; gap:28px; font-size:13.5px; color:var(--slate); flex-wrap:wrap; }
.footer-links a:hover{ color:var(--cloud-white); }
.footer-bottom{ margin-top:36px; padding-top:20px; border-top:1px solid var(--line); font-size:12.5px; color:var(--slate); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .flow-line{ animation:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- Responsive ---------- */
@media (max-width:920px){
  .hero-grid{ grid-template-columns:1fr; }
  .diagram, .mockup{ max-width:460px; margin:0 auto; }
  .why-grid, .contact-wrap{ grid-template-columns:1fr; }
  .card-grid{ grid-template-columns:1fr 1fr; }
  .card-grid.cols-4{ grid-template-columns:1fr 1fr; }
  .value-grid{ grid-template-columns:1fr 1fr; }
  .team-grid{ grid-template-columns:1fr 1fr; }
  .case-grid{ grid-template-columns:1fr; }
  .process-row{ grid-template-columns:50px 1fr; }
  .process-row > p{ grid-column:2/3; }
}
@media (max-width:640px){
  .nav-links{ position:fixed; top:65px; left:0; right:0; background:var(--core-black); flex-direction:column; align-items:flex-start; padding:20px 28px; gap:18px; border-bottom:1px solid var(--line); display:none; }
  .nav-links.open{ display:flex; }
  .nav-cta{ display:none; }
  .menu-btn{ display:block; }
  .card-grid, .card-grid.cols-4{ grid-template-columns:1fr; }
  .value-grid{ grid-template-columns:1fr; }
  .team-grid{ grid-template-columns:1fr 1fr; }
  .form-row{ grid-template-columns:1fr; }
  .cta-banner{ padding:36px 22px; }
  section{ padding:56px 0; }
}

/* ---------- Why grid (2-col with visual) ---------- */
.why-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:56px; align-items:center; }
.why-points{ display:flex; flex-direction:column; gap:26px; margin-top:28px; }
.why-point h3{ font-size:16px; margin-bottom:6px; }
.why-point p{ color:var(--slate); font-size:14.5px; }
