/* ============================================================
   Devnity Co — Unified Stylesheet
   Merged from: colors_and_type.css + ui_kits/website/styles.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
html { scroll-behavior: smooth; }

/* ============================================================
   DESIGN TOKENS  (from colors_and_type.css)
   ============================================================ */
:root {
  /* Brand gradient — lifted from the logo arc */
  --brand-cyan:    #3DB4F2;
  --brand-indigo:  #4E3CD9;
  --brand-violet:  #7A3BD4;
  --brand-magenta: #B83BA8;
  --brand-coral:   #F26A2E;

  --brand-gradient:      linear-gradient(135deg, #3DB4F2 0%, #4E3CD9 45%, #F26A2E 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(61,180,242,0.18) 0%, rgba(78,60,217,0.18) 50%, rgba(242,106,46,0.18) 100%);

  /* Neutral ramp — cool, hue 245° */
  --ink-0:  #05060D;
  --ink-1:  #0B0D1A;
  --ink-2:  #111428;
  --ink-3:  #181B32;
  --ink-4:  #22263F;
  --ink-5:  #2E3350;
  --ink-6:  #454A6B;
  --ink-7:  #6F7494;
  --ink-8:  #A3A8C4;
  --ink-9:  #D5D8EC;
  --ink-10: #F4F5FB;
  --ink-white: #FFFFFF;

  /* Borders */
  --stroke-subtle: rgba(255,255,255,0.06);
  --stroke:        rgba(255,255,255,0.10);
  --stroke-strong: rgba(255,255,255,0.18);
  --stroke-brand:  rgba(78,60,217,0.35);

  /* Semantic */
  --bg:          var(--ink-1);
  --bg-elevated: var(--ink-3);
  --bg-hover:    var(--ink-4);
  --bg-subtle:   var(--ink-2);

  --fg:          var(--ink-10);
  --fg-muted:    var(--ink-9);
  --fg-dim:      var(--ink-8);
  --fg-meta:     var(--ink-7);
  --fg-accent:   var(--brand-cyan);
  --fg-accent-hot: var(--brand-coral);

  --border:        var(--stroke);
  --border-strong: var(--stroke-strong);
  --border-brand:  var(--stroke-brand);

  /* Status */
  --success: #3DD68C;
  --warning: #F2B441;
  --danger:  #F24E5C;

  /* Typography */
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  clamp(2rem, 3.5vw, 2.5rem);
  --text-5xl:  clamp(2.5rem, 5vw, 3.5rem);
  --text-6xl:  clamp(3rem, 6vw, 4.5rem);
  --text-7xl:  clamp(3.5rem, 8vw, 6rem);

  --leading-tight:   1.05;
  --leading-snug:    1.2;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;

  --tracking-tight:   -0.03em;
  --tracking-snug:    -0.015em;
  --tracking-normal:   0;
  --tracking-wide:     0.02em;
  --tracking-wider:    0.08em;
  --tracking-widest:   0.16em;

  /* Spacing — 4px base */
  --space-1:  0.25rem;   --space-2:  0.5rem;
  --space-3:  0.75rem;   --space-4:  1rem;
  --space-5:  1.25rem;   --space-6:  1.5rem;
  --space-8:  2rem;      --space-10: 2.5rem;
  --space-12: 3rem;      --space-16: 4rem;
  --space-20: 5rem;      --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-xs:   4px;   --radius-sm:   8px;
  --radius-md:   12px;  --radius-lg:   16px;
  --radius-xl:   20px;  --radius-2xl:  24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.35);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.30);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.45);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.55);

  --glow-brand: 0 10px 40px rgba(78,60,217,0.35);
  --glow-coral: 0 10px 40px rgba(242,106,46,0.28);
  --glow-cyan:  0 10px 40px rgba(61,180,242,0.28);

  --inset-top: inset 0 1px 0 rgba(255,255,255,0.08);

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);

  --dur-fast:   120ms;
  --dur-base:   200ms;
  --dur-slow:   400ms;
  --dur-slower: 700ms;

  /* Layout */
  --container:      1240px;
  --container-text: 720px;
  --nav-h: 72px;
}

/* ============================================================
   BASE
   ============================================================ */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--fg-muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01","cv11";
}

#root { display: block; }

.grad-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-cyan);
  font-weight: 500;
}

::selection { background: var(--brand-indigo); color: white; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  line-height: 1;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-md { padding: 12px 22px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--glow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 48px rgba(78,60,217,0.5); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--ink-10);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--brand-cyan); color: var(--brand-cyan); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--fg-dim); }
.btn-ghost:hover { color: var(--brand-cyan); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px;
  display: flex;
  justify-content: center;
}
.nav-inner {
  width: 100%; max-width: var(--container);
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 20px;
  background: rgba(11,13,26,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-md), var(--inset-top);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; text-decoration: none;
}
.nav-logo img { width: 32px; height: 32px; }
.nav-logo span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px;
  letter-spacing: 0.04em; color: white;
}
.nav-links {
  display: flex; gap: 28px;
  margin: 0 auto; padding: 0;
}
.nav-links a {
  font-size: 13.5px; color: var(--fg-dim);
  cursor: pointer; font-weight: 500;
  transition: color 200ms;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-links a.active::after {
  content: ''; position: absolute;
  bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brand-coral);
}
.nav-cta { display: flex; }
.nav-toggle { display: none; background: none; border: none; color: white; }

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute; top: 70px; left: 16px; right: 16px;
    flex-direction: column; gap: 4px;
    padding: 16px;
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px; border-radius: 8px; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 140px 24px 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; }
.hero-fog {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(78,60,217,0.25), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(242,106,46,0.12), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 60%, rgba(61,180,242,0.12), transparent 70%);
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 880px;
  z-index: 1;
}
.hero-content .eyebrow {
  margin-bottom: 24px;
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  font-weight: 600;
  color: var(--ink-10);
}
.hero-content .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--fg-dim);
  margin: 0 auto 40px;
  max-width: 640px;
  line-height: 1.6;
}
.hero-cta {
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-meta {
  display: flex; gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-meta);
  letter-spacing: 0.02em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--success); }

/* ============================================================
   SECTION
   ============================================================ */
.section { padding: 96px 24px; max-width: var(--container); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .eyebrow { display: inline-block; margin-bottom: 12px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink-10);
  font-weight: 600;
}
.section-subtitle { color: var(--fg-dim); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.service-card {
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm), var(--inset-top);
  position: relative; overflow: hidden;
  transition: all 300ms var(--ease-out);
  cursor: pointer;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0); transform-origin: left;
  transition: transform 400ms var(--ease-out);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md), var(--inset-top);
}
.service-card.featured { border-color: var(--border-brand); box-shadow: var(--glow-brand), var(--inset-top); }
.service-card.featured::before { transform: scaleX(1); }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(78,60,217,0.15);
  border: 1px solid rgba(78,60,217,0.3);
  display: grid; place-items: center;
  color: var(--brand-cyan);
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  margin: 0 0 8px; color: var(--ink-10);
}
.service-card p { font-size: 14px; color: var(--fg-dim); line-height: 1.65; margin: 0 0 20px; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-cyan);
  transition: gap 200ms;
}
.service-card:hover .service-link { gap: 10px; }

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

.project-card {
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md), var(--inset-top);
  transition: all 300ms var(--ease-out);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg), var(--inset-top);
}
.project-thumb {
  aspect-ratio: 16/10;
  position: relative;
  background: var(--brand-gradient);
  overflow: hidden;
}
.project-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.4);
}
.project-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 20px; opacity: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,13,26,0.85));
  transition: opacity 300ms;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: white; color: var(--ink-1);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.project-info { padding: 24px 26px 28px; }
.project-info .eyebrow { margin-bottom: 8px; }
.project-info h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink-10);
  letter-spacing: -0.01em;
}
.project-info p { font-size: 14px; color: var(--fg-dim); line-height: 1.65; margin: 0 0 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(78,60,217,0.12);
  border: 1px solid rgba(78,60,217,0.3);
  color: #B0A8F0; letter-spacing: 0.02em;
}

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.team-card {
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm), var(--inset-top);
  transition: all 300ms var(--ease-out);
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md), var(--inset-top);
}
.team-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.12);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  margin: 0 0 4px; color: var(--ink-10);
}
.team-role {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-cyan); margin-bottom: 14px;
}
.team-card p { font-size: 13.5px; color: var(--fg-dim); line-height: 1.6; margin: 0 0 20px; }
.team-social {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--fg-dim);
  transition: all 200ms;
}
.team-social:hover {
  background: var(--brand-indigo);
  border-color: var(--brand-indigo);
  color: white;
  transform: translateY(-2px);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-md), var(--inset-top);
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
}
.contact-info .eyebrow { margin-bottom: 10px; display: inline-block; }
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 32px; line-height: 1.1;
  letter-spacing: -0.02em; font-weight: 600;
  margin: 0 0 16px; color: var(--ink-10);
}
.contact-info p { color: var(--fg-dim); line-height: 1.65; margin: 0 0 28px; }
.contact-details { display: grid; gap: 14px; }
.contact-details li { display: flex; align-items: center; gap: 12px; color: var(--fg-muted); font-size: 14px; }
.contact-details svg { color: var(--brand-cyan); flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-9); font-weight: 500; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-sans); font-size: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink-10);
  transition: all 200ms var(--ease-out);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-indigo);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(78,60,217,0.15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink-6); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 24px 36px;
  background: var(--ink-2);
}
.footer-inner { max-width: var(--container); margin: 0 auto; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  letter-spacing: 0.04em;
}
.footer-tag {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-meta); letter-spacing: 0.05em;
  margin: 0 0 24px;
}
.footer-links {
  display: flex; justify-content: center; gap: 28px;
  margin: 0 0 24px; flex-wrap: wrap;
}
.footer-links a { font-size: 13px; color: var(--fg-dim); cursor: pointer; }
.footer-links a:hover { color: var(--brand-cyan); }
.footer-social {
  display: flex; justify-content: center; gap: 10px;
  margin: 0 0 28px;
}
.footer-social a {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--fg-dim);
  transition: all 200ms;
}
.footer-social a:hover {
  background: var(--brand-indigo);
  border-color: var(--brand-indigo);
  color: white;
  transform: translateY(-2px);
}
.copyright { font-size: 12px; color: var(--fg-meta); margin: 0; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
