/* ============================================================
   DiengLabs — software studio landing page
   Highland / "above the clouds" theme: misty teal + sunrise amber
   ============================================================ */

:root {
  --bg:       #0b1120;
  --bg-2:     #0f1a2e;
  --surface:  rgba(255,255,255,0.04);
  --surface-2:rgba(255,255,255,0.07);
  --border:   rgba(255,255,255,0.10);
  --text:     #eef2f8;
  --muted:    #9fb0c5;
  --faint:    #6b7d95;
  --teal:     #2dd4bf;
  --teal-2:   #38bdf8;
  --amber:    #ffb347;
  --radius:   18px;
  --maxw:     1100px;
  --ease:     cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand__name { font-family: 'Sora', sans-serif; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
strong { color: #fff; }
em { color: var(--teal); font-style: normal; }

/* Background */
.glow { position: fixed; z-index: -2; border-radius: 50%; filter: blur(130px); opacity: .45; pointer-events: none; }
.glow--1 { width: 560px; height: 560px; top: -180px; left: -140px; background: radial-gradient(circle, var(--teal), transparent 70%); }
.glow--2 { width: 480px; height: 480px; top: 20%; right: -160px; background: radial-gradient(circle, var(--amber), transparent 72%); opacity: .28; }
.clouds {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(45,212,191,.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(56,189,248,.08), transparent 60%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 24px; backdrop-filter: blur(14px);
}
.nav::before { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(11,17,32,.86), rgba(11,17,32,.25)); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: #fff; padding: 2px; object-fit: contain; box-shadow: 0 2px 10px -2px rgba(0,0,0,.5); }
.brand__name { font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
.brand__name span { color: var(--teal); }
.nav__links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: #fff; }
@media (max-width: 760px){ .nav__links { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 14px 26px; font-size: 15px; }

/* Secondary (default) hover: lighten surface, brighten text, subtle lift */
.btn:hover { border-color: rgba(255,255,255,.28); background: var(--surface-2); color: #fff; transform: translateY(-2px); }

/* Primary: teal gradient + dark text. Hover MUST re-state background so it
   isn't overridden by the higher-specificity .btn:hover rule. */
.btn--primary { background: linear-gradient(120deg, var(--teal), var(--teal-2)); border-color: transparent; color: #05221f; box-shadow: 0 10px 30px -10px var(--teal); }
.btn--primary:hover { background: linear-gradient(120deg, #3fe3ce, #55c9ff); border-color: transparent; color: #05221f; box-shadow: 0 16px 40px -8px var(--teal); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Hero */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 70px 24px 50px; text-align: center; }
.hero__logo {
  width: 140px; height: 140px; object-fit: contain; display: block; margin: 0 auto 26px;
  background: #fff; border-radius: 30px; padding: 16px;
  box-shadow: 0 20px 60px -18px rgba(45,212,191,.5), 0 0 0 1px var(--border);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); font-weight: 500; padding: 6px 15px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(45,212,191,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(45,212,191,.55);} 70%{box-shadow:0 0 0 9px rgba(45,212,191,0);} 100%{box-shadow:0 0 0 0 rgba(45,212,191,0);} }
.hero__title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; line-height: 1.03; letter-spacing: -2px; margin: 24px 0 18px; }
.grad { background: linear-gradient(115deg, var(--teal) 10%, var(--teal-2) 60%, var(--amber) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }
.hero__cta { display: flex; gap: 12px; justify-content: center; margin: 30px 0 44px; flex-wrap: wrap; }
.hero__stats { list-style: none; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: 'Sora'; font-size: 1.5rem; color: #fff; }
.hero__stats span { font-size: 13px; color: var(--faint); }

/* Sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: 70px 24px; }
.section__head { text-align: center; margin-bottom: 44px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -1px; margin-top: 8px; }
.section__sub { color: var(--muted); margin-top: 10px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Grid + cards */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px){ .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .grid--3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-5px); border-color: rgba(45,212,191,.4); }
.card__ico { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 860px){ .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.step__n { font-family: 'Sora'; font-weight: 800; font-size: 2rem; background: linear-gradient(120deg, var(--teal), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* Work */
.work { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.work:hover { transform: translateY(-5px); border-color: rgba(45,212,191,.45); background: var(--surface-2); }
.work__tag { font-size: 12px; font-weight: 600; color: var(--teal); letter-spacing: .3px; }
.work h3 { font-size: 1.2rem; }
.work p { color: var(--muted); font-size: .94rem; flex: 1; }
.work__link { font-size: 13px; font-weight: 600; color: var(--muted); }
.work:hover .work__link { color: var(--teal); }
.work-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: .98rem; max-width: 720px; margin-left: auto; margin-right: auto; }

/* Featured product */
.feature {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: linear-gradient(150deg, var(--bg-2), rgba(45,212,191,.05));
  border: 1px solid var(--border); border-radius: 24px; overflow: hidden;
  transition: transform .28s var(--ease), border-color .28s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(45,212,191,.5); color: var(--text); }
.feature__media {
  position: relative; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, rgba(45,212,191,.20), rgba(56,189,248,.08) 55%, transparent 75%);
  border-right: 1px solid var(--border); min-height: 220px; overflow: hidden;
}
.feature__logo {
  width: 128px; height: 128px; object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(255,180,60,.35));
  animation: floaty 6s ease-in-out infinite;
}
.feature__badge {
  position: absolute; top: 16px; left: 16px; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; background: rgba(11,17,32,.72); color: #fff;
  border: 1px solid var(--border); backdrop-filter: blur(6px);
}
.feature__body { padding: 30px 32px; display: flex; flex-direction: column; gap: 10px; }
.feature__body h3 { font-size: 1.4rem; letter-spacing: -.5px; }
.feature__body > p { color: var(--muted); font-size: .98rem; }
.feature__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.feature__tags span { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.feature__cta { align-self: flex-start; margin-top: 6px; }
@media (max-width: 680px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 160px; border-right: none; border-bottom: 1px solid var(--border); }
  .feature__emblem { font-size: 64px; }
}

/* Tech */
.section--tech { text-align: center; }
.tech { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.tech span { font-size: 14px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px){ .about { grid-template-columns: 1fr; } }
.about__text h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 8px 0 16px; letter-spacing: -1px; }
.about__text p { color: var(--muted); margin-bottom: 14px; }
.about__text a[href] { color: var(--teal); }
.about__text .btn { margin-top: 8px; }
.about__values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px){ .about__values { grid-template-columns: 1fr; } }
.value { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.value strong { font-size: .98rem; }
.value span { font-size: .85rem; color: var(--faint); }

/* Contact */
.section--contact { text-align: center; }
.contact { background: linear-gradient(160deg, var(--bg-2), rgba(45,212,191,.06)); border: 1px solid var(--border); border-radius: 26px; padding: 60px 30px; }
.contact h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 8px 0 10px; letter-spacing: -1px; }
.contact p { color: var(--muted); }
.contact__cta { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* Footer */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 60px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 9px; font-family: 'Sora'; font-weight: 700; }
.footer__brand img { border-radius: 7px; background: #fff; padding: 2px; }
.footer p { color: var(--faint); font-size: 13px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ *{ animation:none!important; transition:none!important; } .reveal{ opacity:1; transform:none; } }
