/* ═══════════════════════════════════════════════
   DELVARO GROUP — Corporate Website
   Palette: Deep #0A0F1A · Slate #1E293B · Teal #00D4AA
   Fonts: Space Grotesk (display) · Inter (body)
   ═══════════════════════════════════════════════ */

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

:root {
  --deep: #0A0F1A;
  --slate: #1E293B;
  --slate-light: #334155;
  --teal: #00D4AA;
  --teal-dark: #00B894;
  --teal-glow: rgba(0, 212, 170, 0.12);
  --teal-bright: rgba(0, 212, 170, 0.8);
  --violet: #6366F1;
  --surface: #F1F5F9;
  --white: #FFFFFF;
  --elevated: #F8FAFC;
  --text: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
  --shadow-teal: 0 0 40px rgba(0, 212, 170, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ─── Type ─── */
h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; }
.label {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 16px;
}
.section-title em { font-style: normal; color: var(--teal-dark); }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 0.92rem;
  padding: 14px 32px; border-radius: var(--radius);
  border: 2px solid transparent; text-decoration: none;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn--primary {
  background: var(--teal); color: var(--deep); border-color: var(--teal);
}
.btn--primary:hover {
  background: var(--teal-dark); border-color: var(--teal-dark);
  transform: translateY(-2px); box-shadow: var(--shadow-teal);
}
.btn--glass {
  background: rgba(255,255,255,0.06); color: var(--white);
  border-color: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
}
.btn--glass:hover { border-color: var(--teal); color: var(--teal); }
.btn--full { width: 100%; }

/* ─── Reveal ─── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 18px 0; transition: var(--transition);
}
.nav.scrolled {
  background: rgba(10, 15, 26, 0.92); backdrop-filter: blur(16px);
  padding: 10px 0; box-shadow: 0 1px 24px rgba(0,0,0,0.2);
}
.nav__inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--white);
}
.nav__logo-mark {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--deep);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  border-radius: var(--radius-sm);
}
.nav__logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em;
}
.nav__logo-accent { font-weight: 400; opacity: 0.5; }
.nav__links { display: flex; list-style: none; gap: 32px; }
.nav__links a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; transition: var(--transition);
}
.nav__links a:hover { color: var(--teal); }
.nav__cta {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 0.82rem;
  padding: 9px 22px; background: var(--teal); color: var(--deep);
  text-decoration: none; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav__cta:hover { background: var(--teal-dark); }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__burger span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; overflow: hidden;
  background: var(--deep);
}
.hero__bg { position: absolute; inset: 0; }
.hero__mesh {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 48px 48px;
}
.hero__gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 70% 40%, rgba(0, 212, 170, 0.07), transparent),
    radial-gradient(ellipse 50% 50% at 20% 60%, rgba(99, 102, 241, 0.05), transparent);
}
.hero__orbs { position: absolute; inset: 0; pointer-events: none; }
.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.4;
}
.hero__orb--1 {
  width: 400px; height: 400px; top: -10%; right: -5%;
  background: var(--teal); opacity: 0.06;
  animation: orbFloat1 12s ease-in-out infinite;
}
.hero__orb--2 {
  width: 300px; height: 300px; bottom: 10%; left: -5%;
  background: var(--violet); opacity: 0.05;
  animation: orbFloat2 15s ease-in-out infinite;
}
.hero__orb--3 {
  width: 200px; height: 200px; top: 40%; right: 30%;
  background: var(--teal); opacity: 0.04;
  animation: orbFloat3 10s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 20px); } }
@keyframes orbFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px, -30px); } }
@keyframes orbFloat3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-15px, 15px); } }

.hero__content {
  position: relative; z-index: 2;
  padding: 140px 24px 80px;
  max-width: 1160px; margin: 0 auto; width: 100%;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em; margin-bottom: 28px;
}
.hero__tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700; color: var(--white);
  margin-bottom: 24px; line-height: 1.1;
}
.hero__title-accent {
  color: var(--teal); display: inline-block;
}
.hero__title-accent::after {
  content: ''; display: inline-block;
  width: 3px; height: 0.85em;
  background: var(--teal); margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,0.5);
  max-width: 560px; margin-bottom: 40px; line-height: 1.75;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Ticker */
.hero__ticker {
  position: absolute; bottom: 0; left: 0; right: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 14px 0;
}
.hero__ticker-track {
  display: flex; gap: 24px; white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.hero__ticker-track span {
  font-size: 0.75rem; font-weight: 500;
  color:white;
  letter-spacing: 0.04em; text-transform: uppercase;
  flex-shrink: 0;
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══════════════ ABOUT ═══════════════ */
.about { padding: 120px 0; background: var(--white); }
.about__header { max-width: 700px; margin-bottom: 64px; }
.about__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--deep);
}
.about__title em { font-style: normal; color: var(--teal-dark); }
.about__founder {
  font-size: 1.05rem; color: var(--text-secondary);
  line-height: 1.75; margin-top: 20px; max-width: 640px;
}
.about__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-bottom: 64px;
}
.about__block {
  padding: 36px; border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--transition);
}
.about__block:hover { border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.about__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  color: var(--teal); letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.about__block h3 {
  font-size: 1.15rem; font-weight: 600;
  color: var(--deep); margin-bottom: 10px;
}
.about__block p {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7;
}
.about__stats {
  display: flex; gap: 64px;
  padding: 40px 0; border-top: 1px solid var(--border);
}
.about__stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem; font-weight: 700;
  color: var(--deep); display: block; line-height: 1;
}
.about__stat-num--accent {
  color: var(--teal); font-size: 1.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.about__stat-label {
  font-size: 0.8rem; color: var(--text-muted);
  margin-top: 6px; display: block;
}

/* ═══════════════ PORTFOLIO ═══════════════ */
.portfolio { padding: 120px 0; background: var(--surface); }
.portfolio__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.folio-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border);
  transition: var(--transition); display: flex;
  flex-direction: column; position: relative; overflow: hidden;
}
.folio-card__accent {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--card-color);
  opacity: 0; transition: var(--transition);
}
.folio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.folio-card:hover .folio-card__accent { opacity: 1; }
.folio-card--open { border-style: dashed; border-color: var(--teal); background: var(--elevated); }
.folio-card--open:hover { box-shadow: var(--shadow-teal); }

.folio-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.folio-card__icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.folio-card__icon--open {
  background: transparent !important;
  border: 2px dashed var(--teal); color: var(--teal);
}
.folio-card__name {
  font-size: 1.1rem; font-weight: 700; color: var(--deep);
}
.folio-card__type {
  font-size: 0.75rem; color: var(--text-muted);
}
.folio-card__status {
  margin-left: auto; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.folio-card__status--live { background: rgba(0,212,170,0.1); color: var(--teal-dark); }
.folio-card__status--dev { background: rgba(99,102,241,0.1); color: var(--violet); }
.folio-card__status--open { background: var(--teal-glow); color: var(--teal); }

.folio-card__desc {
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.65; margin-bottom: 16px;
}
.folio-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.folio-card__tags span {
  font-size: 0.7rem; font-weight: 500;
  padding: 4px 10px; border-radius: 20px;
  background: var(--surface); color: var(--text-muted);
}
.folio-card__footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.folio-card__link {
  font-size: 0.85rem; font-weight: 600;
  color: var(--teal-dark); text-decoration: none;
  transition: var(--transition);
}
.folio-card__link:hover { color: var(--teal); }
.folio-card__demo {
  font-size: 0.8rem; font-weight: 600;
  color: var(--deep); text-decoration: none;
  padding: 8px 18px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: var(--transition);
}
.folio-card__demo:hover { border-color: var(--teal); color: var(--teal); }

/* ═══════════════ SECTORS ═══════════════ */
.sectors { padding: 120px 0; background: var(--white); }
.sectors__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.sector-card {
  padding: 28px; border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--transition);
  position: relative;
}
.sector-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.sector-card__icon {
  font-size: 1.4rem; color: var(--teal);
  margin-bottom: 14px; display: block;
}
.sector-card h4 {
  font-size: 0.95rem; font-weight: 600;
  color: var(--deep); margin-bottom: 8px;
}
.sector-card p {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 14px;
}
.sector-card__tag {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}
.sector-card__tag--active { color: var(--teal-dark); }

/* ═══════════════ JOIN ═══════════════ */
.join { padding: 120px 0; background: var(--deep); }
.join__inner { max-width: 800px; margin: 0 auto; }
.join .label { color: var(--teal); }
.join .section-title { color: var(--white); }
.join .section-title em { color: var(--teal); }
.join__desc {
  font-size: 1.05rem; color: rgba(255,255,255,0.55);
  line-height: 1.75; margin-bottom: 48px;
}
.join__paths { display: flex; flex-direction: column; gap: 0; margin-bottom: 40px; }
.join__path {
  display: flex; gap: 24px; padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.join__path:last-child { border-bottom: none; }
.join__path-marker {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--teal); flex-shrink: 0;
  margin-top: 6px;
}
.join__path h4 {
  font-size: 1rem; font-weight: 600; color: var(--white);
  margin-bottom: 6px;
}
.join__path p {
  font-size: 0.88rem; color: rgba(255,255,255,0.45); line-height: 1.65;
}
.join__cta { text-align: center; }

/* ═══════════════ DEMO ═══════════════ */
.demo { padding: 120px 0; background: var(--surface); }
.demo__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: flex-start;
}
.demo__desc {
  font-size: 1.02rem; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 28px;
}
.demo__trust { display: flex; flex-direction: column; gap: 12px; }
.demo__trust-item {
  font-size: 0.88rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 10px;
}
.demo__trust-item span {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-glow); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}
.demo__form {
  background: var(--white); padding: 36px;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  color: var(--slate); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; font-family: 'Inter', sans-serif;
  font-size: 0.9rem; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text);
  transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow);
}
.form-group textarea { resize: vertical; }

/* ═══════════════ CONTACT ═══════════════ */
.contact {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.contact__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.contact__col h4 {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.contact__col a, .contact__col p {
  font-size: 0.9rem; color: var(--text-secondary);
  text-decoration: none; line-height: 1.6;
}
.contact__col a:hover { color: var(--teal-dark); }

/* ═══════════════ FOOTER ═══════════════ */
.footer { padding: 60px 0 40px; background: var(--deep); }
.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer__brand {
  display: flex; align-items: center; gap: 10px;
}
.footer__name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 1rem; color: var(--white);
}
.footer__tagline {
  font-size: 0.85rem; color: rgba(255,255,255,0.3); font-style: italic;
}
.footer__links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  padding: 40px 0;
}
.footer__links h5 {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 16px;
}
.footer__links div { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: var(--transition);
}
.footer__links a:hover { color: var(--teal); }
.footer__bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.04);
}
.footer__bottom p {
  font-size: 0.72rem; color: rgba(255,255,255,0.2);
}

/* ═══════════════ TOAST ═══════════════ */
.toast {
  position: fixed; bottom: -100px; left: 50%;
  transform: translateX(-50%); z-index: 2000;
  transition: bottom 0.4s cubic-bezier(0.4,0,0.2,1);
}
.toast.show { bottom: 32px; }
.toast__inner {
  background: var(--deep); color: var(--white);
  padding: 14px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; font-size: 0.88rem;
}
.toast__icon {
  width: 24px; height: 24px; background: var(--teal);
  color: var(--deep); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .portfolio__grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .about__grid { grid-template-columns: 1fr; }
  .sectors__grid { grid-template-columns: repeat(2, 1fr); }
  .demo__inner { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__top { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,15,26,0.98); padding: 20px 24px; gap: 16px;
  }
  .hero__content { padding: 120px 24px 80px; }
  .about__stats { flex-direction: column; gap: 24px; }
  .about__grid { grid-template-columns: 1fr; }
  .sectors__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
