/* ===========================================================
   OVAL Digital Private Limited — stylesheet
   Brand palette derived from logo (royal blue)
   =========================================================== */

:root {
  --blue-900: #1e2a5e;
  --blue-700: #2c3f86;
  --blue-600: #3a53a4;   /* primary brand */
  --blue-500: #4865c0;
  --blue-400: #6f8be0;
  --blue-100: #e8edfb;
  --blue-50:  #f4f6fd;

  --ink:      #161a2b;
  --body:     #4a5066;
  --muted:    #8088a0;
  --line:     #e6e9f2;
  --white:    #ffffff;
  --bg:       #ffffff;
  --bg-soft:  #f6f8fd;

  --wa:       #25d366;

  --radius:   16px;
  --radius-sm:10px;
  --shadow-sm: 0 2px 10px rgba(28,40,90,.06);
  --shadow:    0 14px 40px rgba(28,40,90,.10);
  --shadow-lg: 0 24px 60px rgba(28,40,90,.16);

  --maxw: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);

  --ff-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;

  --header-h: 72px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--ff-head); color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.grad {
  background: linear-gradient(100deg, var(--blue-600), var(--blue-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-head); font-weight: 700; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 50px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(100deg, var(--blue-600), var(--blue-500)); color: #fff; box-shadow: 0 10px 24px rgba(58,83,164,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(58,83,164,.42); }
.btn-ghost { background: transparent; color: var(--blue-600); border-color: var(--blue-100); }
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-400); }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.3); }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(37,211,102,.42); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  background: rgba(255,255,255,.72); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(255,255,255,.9); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--ff-head); font-size: 1.12rem; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: .35rem; }
.nav-link { position: relative; font-family: var(--ff-head); font-weight: 600; font-size: .95rem; color: var(--ink); padding: .55rem .9rem; border-radius: 10px; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--blue-600); }
.nav-link::after { content:""; position:absolute; left: .9rem; right: .9rem; bottom: .35rem; height: 2px; background: var(--blue-600); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; border-radius: 2px; }
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--blue-600); }
.nav-cta { background: linear-gradient(100deg, var(--blue-600), var(--blue-500)); color:#fff !important; margin-left: .4rem; }
.nav-cta::after { display:none; }
.nav-cta:hover { box-shadow: 0 8px 20px rgba(58,83,164,.35); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem,5vw,3.2rem); text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.eyebrow { display: inline-block; font-family: var(--ff-head); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); background: var(--blue-50); padding: .35rem .85rem; border-radius: 50px; margin-bottom: 1rem; }
.section-sub { margin-top: .9rem; color: var(--body); font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(2.5rem,7vw,5rem)); padding-bottom: clamp(3rem,8vw,6rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(111,139,224,.20), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(58,83,164,.12), transparent 55%),
    linear-gradient(180deg, var(--blue-50), #fff 65%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2rem,5vw,4rem); }
.hero-copy h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); margin: .6rem 0 1.1rem; }
.lead { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 38ch; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge { font-family: var(--ff-head); font-weight: 600; font-size: .82rem; color: var(--blue-700); background: #fff; border: 1px solid var(--line); padding: .45rem .8rem; border-radius: 50px; box-shadow: var(--shadow-sm); }

.hero-visual { display: grid; place-items: center; }
.orbit { position: relative; width: min(360px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.orbit-logo { width: 46%; height: auto; filter: drop-shadow(0 20px 40px rgba(58,83,164,.28)); animation: float 6s ease-in-out infinite; }
.ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(58,83,164,.25); }
.ring-1 { inset: 8%; animation: spin 26s linear infinite; }
.ring-2 { inset: 22%; border-style: solid; border-color: rgba(111,139,224,.25); animation: spin 18s linear infinite reverse; }
.dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(var(--blue-500), var(--blue-600)); box-shadow: 0 4px 12px rgba(58,83,164,.4); }
.dot-1 { top: 6%; left: 50%; }
.dot-2 { bottom: 16%; right: 10%; background: linear-gradient(var(--blue-400), var(--blue-500)); }
.dot-3 { bottom: 20%; left: 8%; width: 10px; height: 10px; }

@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }
@keyframes spin { to { transform: rotate(360deg);} }

/* ---------- Stats ---------- */
.stats { background: var(--blue-900); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; padding: clamp(2rem,5vw,3rem) clamp(1rem,4vw,2rem); }
.stat { text-align: center; }
.stat .num { display: block; font-family: var(--ff-head); font-weight: 800; font-size: clamp(1.8rem,4vw,2.6rem); background: linear-gradient(120deg,#fff,#9fb4f0); -webkit-background-clip:text; background-clip:text; color: transparent; }
.stat .label { font-size: .9rem; color: #b9c2e3; letter-spacing: .03em; }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
.about-text p { margin-bottom: 1rem; font-size: 1.05rem; }
.check-list { margin-top: 1.2rem; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 2rem; font-weight: 500; color: var(--ink); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; background: linear-gradient(var(--blue-500), var(--blue-600)); border-radius: 50%; }
.about-card { background: linear-gradient(160deg, var(--blue-600), var(--blue-900)); color: #fff; padding: clamp(1.5rem,3vw,2.2rem); border-radius: var(--radius); box-shadow: var(--shadow); }
.about-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 1.2rem; }
.about-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.about-card dl div:last-child { border-bottom: none; }
.about-card dt { color: #c3cdec; font-size: .9rem; }
.about-card dd { font-weight: 600; text-align: right; font-size: .92rem; }

/* ---------- Card grids (services/products) ---------- */
.services { background: var(--bg-soft); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px,1fr)); gap: 1.4rem; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform .28s ease, box-shadow .28s ease, border-color .28s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.svc-icon { width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 14px; background: var(--blue-50); margin-bottom: 1.1rem; }
.svc-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.svc-card p { font-size: .96rem; }

/* ---------- Products ---------- */
.products { background: var(--bg); }
.prod-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .28s, box-shadow .28s, border-color .28s; overflow: hidden; }
.prod-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width: 4px; background: linear-gradient(var(--blue-500), var(--blue-600)); transform: scaleY(0); transform-origin: top; transition: transform .3s; }
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.prod-card:hover::before { transform: scaleY(1); }
.prod-tag { display: inline-block; font-family: var(--ff-head); font-weight: 700; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); background: var(--blue-50); padding: .3rem .7rem; border-radius: 50px; margin-bottom: .9rem; }
.prod-card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.prod-card p { font-size: .94rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
.contact-list { display: grid; gap: 1.2rem; margin-bottom: 1.6rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.ci-icon { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.15rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-list strong { font-family: var(--ff-head); color: var(--ink); font-size: 1rem; }
.contact-list p { font-size: .95rem; margin-top: .15rem; }
.contact-list a:hover { color: var(--blue-600); text-decoration: underline; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem,3vw,2.2rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-family: var(--ff-head); font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .4rem; }
.field input, .field textarea {
  font-family: var(--ff-body); font-size: .97rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--blue-50); transition: border-color .2s, background .2s, box-shadow .2s; width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-400); background: #fff; box-shadow: 0 0 0 4px rgba(111,139,224,.15); }
.field input.invalid, .field textarea.invalid { border-color: #e25555; background: #fdf1f1; }
.form-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }
.form-note { margin-top: .9rem; font-size: .9rem; color: var(--blue-700); min-height: 1.2em; }
.form-note.note-ok { color: #1a8a4a; font-weight: 600; }
.form-note.note-err { color: #c23b3b; font-weight: 600; }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Map ---------- */
.map-wrap { margin-top: clamp(2rem,5vw,3rem); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #c3cdec; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: clamp(2.5rem,5vw,3.5rem) clamp(1rem,4vw,2rem) 2rem; }
.footer-brand { display: flex; gap: .9rem; align-items: flex-start; }
.footer-brand img { width: 40px; height: 40px; background: #fff; border-radius: 10px; padding: 4px; }
.footer-brand strong { color: #fff; font-family: var(--ff-head); font-size: 1.05rem; display: block; }
.footer-brand p { font-size: .85rem; margin-top: .3rem; max-width: 32ch; }
.footer-nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a, .footer-contact a { transition: color .2s; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { margin-bottom: .55rem; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.1rem 0; }
.footer-bottom p { font-size: .82rem; text-align: center; color: #929db8; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37,211,102,.45); transition: transform .25s; animation: wa-pulse 2.4s infinite; }
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse { 0%{ box-shadow: 0 12px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5);} 70%{ box-shadow: 0 12px 28px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0);} 100%{ box-shadow: 0 12px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0);} }

/* ---------- Scroll to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 90px; z-index: 90; width: 46px; height: 46px; border: none; border-radius: 50%; background: var(--blue-600); color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, background .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-700); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .orbit { width: min(280px, 70vw); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand-text small { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: #fff; padding: 1rem clamp(1rem,4vw,2rem) 1.4rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-link { padding: .85rem 1rem; border-radius: 12px; }
  .nav-link::after { display: none; }
  .nav-link.active { background: var(--blue-50); }
  .nav-cta { margin-left: 0; text-align: center; margin-top: .3rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
