/* NoviNuva Tech Inc. — site styles */

:root {
  --navy: #0A1330;
  --navy-2: #13214A;
  --navy-line: #24346A;
  --navy-line-2: #1C2B5C;
  --blue: #1F5EF0;
  --blue-hover: #163FA8;
  --blue-text: #1F4FCC;
  --cyan: #22D3EE;
  --tint: #EEF3FF;
  --soft: #F4F7FC;
  --line: #E2E8F3;
  --input: #C9D2E3;
  --text: #0A1330;
  --body: #3E4A6B;
  --muted: #5A6685;
  --on-dark: #C5D0EA;
  --on-dark-muted: #9AA8CC;
  --radius: 22px;
  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 868px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: #FFFFFF; padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; color: #FFFFFF; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.wordmark-accent { color: var(--blue); }
.wordmark-gradient {
  background: linear-gradient(90deg, #22D3EE, #3B82F6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; font-weight: 600; }
.nav-links a { color: var(--text); padding: 10px 0; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #FFFFFF; color: var(--text); align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 17px;
  padding: 15px 26px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer;
  min-height: 48px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-hover); color: #FFFFFF; }
.btn-dark { background: var(--navy); color: #FFFFFF; font-size: 15px; padding: 12px 22px; }
.btn-dark:hover { background: var(--navy-2); color: #FFFFFF; }
.btn-outline { border-color: var(--input); color: var(--text); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-visual { flex: 1 1 440px; min-width: 0; background: var(--navy); border-radius: 32px; padding: 20px; display: flex; justify-content: center; }
.hero-visual > svg { width: 100%; max-width: 500px; height: auto; }
.pill {
  align-self: flex-start; display: flex; align-items: center; gap: 10px;
  background: var(--tint); color: var(--blue-text);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(42px, 6.4vw, 86px); line-height: 1.02; letter-spacing: -0.04em;
}
.text-blue { color: var(--blue); }
.lead { font-size: 20px; line-height: 1.6; color: var(--body); max-width: 560px; }
.lead-dark { color: var(--body); max-width: 760px; font-size: 18px; line-height: 1.65; }
.checks { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 600; color: var(--body); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F5EF0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy); color: #FFFFFF; padding: 112px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 700px; margin-bottom: 48px; }
.section-head.split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.section-head.split > div { max-width: 700px; display: flex; flex-direction: column; gap: 14px; }
.section-intro { font-size: 17px; line-height: 1.6; color: var(--body); max-width: 420px; }
.section-dark .section-intro { color: var(--on-dark); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.28em; color: var(--blue); }
.eyebrow-cyan { color: var(--cyan); }
h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.03em;
}
.h2-xl { font-size: clamp(34px, 4.6vw, 58px); }
.text-gradient {
  background: linear-gradient(90deg, #22D3EE, #3B82F6 60%, #8B6CF0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#about h2 { margin: 18px 0 20px; }
.tagline { margin-top: 20px; font-size: 13px; letter-spacing: 0.3em; font-weight: 700; color: var(--muted); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(10, 19, 48, 0.35); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -0.02em; line-height: 1.2; }
.card p { font-size: 16px; line-height: 1.6; color: var(--body); }
.icon-box {
  width: 52px; height: 52px; border-radius: 14px; background: var(--tint);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.icon-box svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.service-top { display: flex; justify-content: space-between; align-items: center; }
.service-num { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #7C88A8; }
.service > p { flex: 1; }
.old-new { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.old-new .old { color: var(--muted); }
.old-new .new { color: var(--blue-text); font-weight: 700; }

.service-dark { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.service-dark p { color: var(--on-dark); }
.service-dark .icon-box { background: var(--navy-2); }
.service-dark .icon-box svg { stroke: var(--cyan); }
.service-dark .service-num { color: var(--on-dark-muted); }
.service-dark .old-new { border-top-color: var(--navy-line); }
.service-dark .old-new .old { color: var(--on-dark-muted); }
.service-dark .old-new .new { color: var(--cyan); }

.card-dark { background: var(--navy-2); border-color: var(--navy-line); color: #FFFFFF; }
.card-dark p { color: var(--on-dark); }
.principle h3 { font-family: var(--font-body); font-weight: 700; font-size: 21px; letter-spacing: 0; }
.principle-word {
  font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-1 { background-image: linear-gradient(90deg, #22D3EE, #3B82F6); }
.grad-2 { background-image: linear-gradient(90deg, #3B82F6, #8B6CF0); }
.grad-3 { background-image: linear-gradient(90deg, #8B6CF0, #22D3EE); }

.steps { counter-reset: none; }
.step { display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--blue); padding-top: 22px; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--blue); }
.step p { font-size: 16px; line-height: 1.6; color: var(--body); }
.step-2 { border-top-color: #3B82F6; }
.step-3 { border-top-color: #6C4BF5; }
.step-3 h3 { color: #5A3FD6; }
.step-4 { border-top-color: var(--navy); }
.step-4 h3 { color: var(--navy); }

.industry { gap: 14px; }
.industry h3 { font-size: 22px; }
.industry-cta { background: transparent; border: 2px dashed #B3BED6; }
.industry-cta p { flex: 1; }
.link-arrow { font-weight: 700; padding: 8px 0; }

/* ---------- Contact ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-line { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }
.contact-line svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact-form {
  flex: 1 1 460px; min-width: 0; background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 16px 40px rgba(10, 19, 48, 0.06);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 500; font-size: 16px; color: var(--text);
  padding: 13px 14px; border: 1px solid var(--input); border-radius: 10px; background: #FFFFFF; width: 100%;
}
.contact-form textarea { resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #FFFFFF; padding: 56px 0 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.brand-light, .brand-light:hover { color: #FFFFFF; }
.brand-light .wordmark { font-size: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; font-size: 15px; font-weight: 600; }
.footer-links a { color: #FFFFFF; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--navy-line-2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--on-dark-muted);
}
.footer-bottom a { color: var(--on-dark); }
.footer-bottom a:hover { color: #FFFFFF; }

/* ---------- FAQ ---------- */
#about + #faq { padding-top: 0; }
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--blue); font-size: 26px; line-height: 1; transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 12px 0 0; color: var(--body); line-height: 1.65; max-width: 720px; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound .container { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 8px 0 12px;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-actions { justify-content: space-between; }
  .hero { padding: 48px 0 72px; }
  .section { padding: 80px 0; }
  .section-dark { padding: 88px 0; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .card { padding: 24px; }
  .hero-visual { border-radius: 24px; padding: 12px; }
  .lead { font-size: 18px; }
}

/* ---------- Motion ---------- */
/* Hero assembles on load in pure CSS (no flash before JS runs); everything below reveals on scroll via main.js. */
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes pop { from { opacity: 0; scale: 0.6; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes unspin { to { rotate: -360deg; } }
@keyframes breathe { 50% { opacity: 0.55; } }

.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-visual { animation: rise .8s cubic-bezier(.2, .7, .2, 1) .1s both; }

/* Spokes draw clockwise out from the logo, then each service pops in at its spoke's end. */
.hub-logo, .hub-node, .hub-orbit { transform-box: fill-box; transform-origin: center; }
.hub-logo { animation: pop .6s cubic-bezier(.2, .7, .2, 1) .35s both; }
.spoke { stroke-dasharray: 1; animation: draw .45s ease-out calc(.55s + var(--d, 0) * .09s) both; }
/* Services orbit the logo; each label counter-rotates at the same rate so its text stays upright. */
.hub-wheel { transform-origin: 260px 260px; animation: spin 40s linear infinite; }
.hub-node {
  animation: pop .45s cubic-bezier(.3, 1.4, .5, 1) calc(.85s + var(--d, 0) * .09s) both,
             unspin 40s linear infinite;
}
.hero-visual:hover .hub-wheel, .hero-visual:hover .hub-node { animation-play-state: paused; }
.spoke:nth-child(2), .hub-node:nth-child(2) { --d: 1; }
.spoke:nth-child(3), .hub-node:nth-child(3) { --d: 2; }
.spoke:nth-child(4), .hub-node:nth-child(4) { --d: 3; }
.spoke:nth-child(5), .hub-node:nth-child(5) { --d: 4; }
.spoke:nth-child(6), .hub-node:nth-child(6) { --d: 5; }
.hub-orbit { animation: spin 90s linear infinite; }
.hub-glow { animation: breathe 5s ease-in-out infinite; }

/* .reveal is only added by JS, so content stays visible without it. --i staggers items entering together. */
.reveal { opacity: 0; translate: 0 24px; }
.reveal.in {
  opacity: 1; translate: none;
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 90ms),
              translate .7s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 90ms),
              transform .25s ease, box-shadow .25s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
}
