/* Adya Technology — public website. Dark + gradient, mobile first. */
:root {
  --bg: #0B0F1A;
  --surface: #131A2A;
  --surface-2: #1B2438;
  --border: #26324A;
  --text: #E6EAF2;
  --muted: #8B96AD;
  --violet: #7C3AED;
  --blue: #2563EB;
  --cyan: #06B6D4;
  --success: #22C55E;
  --danger: #F87171;
  --grad: linear-gradient(120deg, #7C3AED 0%, #2563EB 50%, #06B6D4 100%);
  --radius: 18px;
  --gutter: 16px;
  --head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: #7DD3FC; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text {
  background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* Ambient background */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .32; animation: float 22s ease-in-out infinite; }
.o1 { width: 520px; height: 520px; background: var(--violet); top: -180px; left: -160px; }
.o2 { width: 460px; height: 460px; background: var(--blue); top: 30%; right: -200px; animation-delay: -7s; opacity: .22; }
.o3 { width: 380px; height: 380px; background: var(--cyan); bottom: -160px; left: 20%; animation-delay: -14s; opacity: .16; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 26, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(38, 50, 74, .6); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.1rem var(--head); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.logo-mark { flex: none; filter: drop-shadow(0 6px 18px rgba(124, 58, 237, .35)); }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 500; transition: color .2s, background .2s; }
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: var(--text); background: var(--surface); text-decoration: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .i-close { display: none; }
.ic { width: 22px; height: 22px; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px; font: 600 .98rem var(--body); border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; text-decoration: none !important; }
.btn-primary { background: var(--grad); background-size: 150% auto; color: #fff; box-shadow: 0 10px 30px -10px rgba(37, 99, 235, .7); }
.btn-primary:hover { transform: translateY(-2px); background-position: right center; box-shadow: 0 16px 36px -12px rgba(124, 58, 237, .8); }
.btn-ghost { color: var(--text); border-color: var(--border); background: rgba(19, 26, 42, .6); }
.btn-ghost:hover { border-color: #3B4A6B; background: var(--surface); }
.btn .ic { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ic { transform: translateX(3px); }

/* Sections */
section { padding: 72px 0; }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .8rem var(--body); text-transform: uppercase; letter-spacing: .12em; color: #A5B4FC; margin-bottom: 16px; padding: 6px 12px; border: 1px solid rgba(124, 58, 237, .4); border-radius: 999px; background: rgba(124, 58, 237, .1); }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: #B6C0D4; max-width: 640px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .grad-text { display: block; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; }
.hero-art img { border-radius: var(--radius); border: 1px solid var(--border); }
.hero-art svg { width: 100%; height: auto; display: block; }
.page-hero { padding: 64px 0 24px; }
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 3.3rem); max-width: 860px; }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; background: linear-gradient(180deg, rgba(27, 36, 56, .75), rgba(19, 26, 42, .9));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .3s, border-color .3s, box-shadow .3s;
  min-width: 0;
}
.card.hover:hover { transform: translateY(-4px); border-color: rgba(124, 58, 237, .55); box-shadow: 0 20px 50px -24px rgba(124, 58, 237, .6); }
.card p:last-child { margin-bottom: 0; }
.ic-badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; margin-bottom: 18px; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .8); }
.ic-badge .ic { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card .muted { font-size: .97rem; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; color: #C7CFDF; }
.ticks .ic { width: 18px; height: 18px; color: var(--cyan); margin-top: 4px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { text-align: center; padding: 28px 12px; }
.stat-num { display: block; font: 800 clamp(2rem, 5vw, 3rem)/1 var(--head); margin-bottom: 8px; }
.stat-label { color: var(--muted); font-size: .95rem; }

/* Two column prose */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.prose p { color: #C3CBDB; }
.vm { border-image: none; }
.vm .tag { display: inline-block; font: 700 .78rem var(--body); letter-spacing: .1em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.vm p { font-size: 1.12rem; color: var(--text); }
.steps { counter-reset: step; }
.steps .card::before { counter-increment: step; content: '0' counter(step); display: block; font: 800 2rem var(--head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }

/* Projects */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; font-size: .8rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: rgba(37, 99, 235, .14); color: #BFD3FF; border: 1px solid rgba(37, 99, 235, .35); }
.filter { margin-bottom: 28px; }
.filter a.chip { color: #C7D2FE; padding: 7px 14px; font-size: .88rem; }
.filter a.chip:hover { text-decoration: none; border-color: var(--cyan); }
.filter a.chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.proj { display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.proj:hover { text-decoration: none; }
.proj h3 { margin: 0; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .9rem; }
.proj-meta span { display: inline-flex; align-items: center; gap: 6px; }
.proj-meta .ic { width: 16px; height: 16px; }
.proj .more { margin-top: auto; color: #7DD3FC; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.proj .more .ic { width: 16px; height: 16px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #B6C0D4; margin: 0; }
.detail { max-width: 860px; }
.detail .summary { font-size: 1.1rem; color: #C9D1E0; white-space: pre-line; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); margin-bottom: 18px; }

/* Testimonials */
.quote { display: flex; flex-direction: column; gap: 14px; }
.quote blockquote { margin: 0; color: #D3D9E6; font-size: 1.02rem; white-space: pre-line; overflow-wrap: anywhere; }
.stars { display: inline-flex; gap: 2px; color: #FBBF24; }
.stars .ic { width: 18px; height: 18px; fill: currentColor; }
.stars .off { color: #3B4660; }
.who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex: none; }
.who strong { display: block; }
.who small { color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 26px; padding: 48px 32px; background: linear-gradient(120deg, rgba(124, 58, 237, .28), rgba(37, 99, 235, .22), rgba(6, 182, 212, .2)); border: 1px solid rgba(124, 58, 237, .4); text-align: center; }
.cta-band p { color: #C9D1E0; max-width: 620px; margin: 0 auto 24px; }

/* Forms */
.form-card { padding: 28px; }
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: #D3D9E6; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, .25); }
.field .err { color: var(--danger); font-size: .86rem; margin-top: 6px; display: block; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--danger); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font-weight: 500; color: #C7CFDF; }
.seg input:checked + span { background: var(--grad); color: #fff; border-color: transparent; }
.seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.rating { flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating span { min-height: 44px; min-width: 44px; padding: 0; justify-content: center; font-size: 1.4rem; color: #3B4660; background: transparent; border-color: transparent; }
.rating input:checked + span, .rating label:has(input:checked) ~ label span, .rating:hover label span { color: #3B4660; background: transparent; }
.rating input:checked + span, .rating label:has(input:checked) ~ label span { color: #FBBF24; }
.rating:hover label:hover span, .rating:hover label:hover ~ label span { color: #FBBF24; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; border: 1px solid; }
.alert-ok { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .45); color: #BBF7D0; }
.alert-err { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .45); color: #FECACA; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic-badge { width: 42px; height: 42px; margin: 0; border-radius: 12px; }
.contact-list .ic-badge .ic { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); }
.contact-list a, .contact-list span { overflow-wrap: anywhere; }
.map { margin-top: 20px; position: relative; min-height: 200px; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; display: flex; align-items: flex-end; padding: 18px;
  background: radial-gradient(circle at 60% 40%, rgba(6, 182, 212, .25), transparent 40%), repeating-linear-gradient(0deg, rgba(139, 150, 173, .08) 0 1px, transparent 1px 32px), repeating-linear-gradient(90deg, rgba(139, 150, 173, .08) 0 1px, transparent 1px 32px), var(--surface); }
.map .pin { position: absolute; left: 58%; top: 34%; color: var(--cyan); animation: bob 2.4s ease-in-out infinite; }
.map .pin .ic { width: 38px; height: 38px; filter: drop-shadow(0 6px 12px rgba(6, 182, 212, .6)); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(11, 15, 26, .85); padding: 56px 0 24px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
.foot-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.foot-links, .foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-links a, .foot-contact a { color: #C7CFDF; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; color: #C7CFDF; overflow-wrap: anywhere; }
.foot-contact .ic { width: 18px; height: 18px; color: var(--cyan); margin-top: 4px; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: #C7CFDF; }
.social a:hover { border-color: var(--violet); color: #fff; }
.social .ic { width: 18px; height: 18px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.foot-bottom a { color: var(--muted); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }

/* Hero illustration animation */
.art-float { animation: float2 7s ease-in-out infinite; transform-origin: center; }
.art-float.d2 { animation-delay: -3.5s; }
@keyframes float2 { 50% { transform: translateY(-10px); } }
.art-pulse { animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.art-dash { stroke-dasharray: 6 8; animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -140; } }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1000px) {
  .g4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 520px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px var(--gutter) 24px; background: rgba(11, 15, 26, .97); border-bottom: 1px solid var(--border); transform: translateY(-120%); visibility: hidden; transition: transform .3s ease, visibility .3s; max-height: calc(100vh - 68px); overflow-y: auto; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { display: block; padding: 12px 14px; font-size: 1.05rem; }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-open .menu-btn .i-open { display: none; }
  .nav-open .menu-btn .i-close { display: block; }
}
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero { padding: 44px 0 36px; }
  .page-hero { padding: 44px 0 8px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .stats { gap: 12px; }
  .stat { padding: 20px 8px; }
  .card, .form-card { padding: 20px; }
  .form .row2 { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 20px; }
  .cta-row .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .orb { filter: blur(60px); }
  .o1 { width: 320px; height: 320px; } .o2 { width: 280px; height: 280px; } .o3 { width: 240px; height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.seg .sr-only { position: absolute; width: 1px; height: 1px; min-height: 0; min-width: 0; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); }
