/* ============================================================
   Devruno — style.css
   Dark-tech theme with cyan accent
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0f14;
  --bg-card:   #13161f;
  --bg-raised: #1a1e2b;
  --border:    #252a3a;
  --text:      #e2e8f0;
  --text-muted:#8892a4;
  --accent:    #00d4ff;
  --accent-dim:#0099bb;
  --accent-glow: 0 0 20px rgba(0,212,255,.25);
  --font:      'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --radius:    8px;
  --max-w:     1140px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Layout Helpers ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,20,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

/* Text logo — replace content with <img> when ready */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.logo span { color: var(--accent); }
.logo img {
  height: 78px;
  width: auto;
  margin-right: 10px;
  display: block;
}

.main-nav { display: flex; align-items: center; gap: 8px; }

.main-nav a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: var(--bg-raised);
}

.nav-cta {
  margin-left: 8px;
  background: var(--accent) !important;
  color: var(--bg) !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
}
.nav-cta:hover {
  background: var(--accent-dim) !important;
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(0,212,255,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-dim);
  box-shadow: var(--accent-glow);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  font-family: var(--mono);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stats Strip ---------- */
.stats-strip {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
}
.stat-item {
  padding: 36px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: .85rem; color: var(--text-muted); }

/* ---------- Services Preview / Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,212,255,.1);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}
.service-card p { color: var(--text-muted); font-size: .9rem; }

/* ---------- About / Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.team-card:hover { border-color: var(--accent); }

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .8rem;
  font-family: var(--mono);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-info { padding: 24px; }
.team-info h3 { font-size: 1rem; margin-bottom: 4px; }
.team-role {
  font-size: .8rem;
  font-family: var(--mono);
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.team-info p { color: var(--text-muted); font-size: .875rem; }

/* ---------- Why Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
}
.why-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.why-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-item h4 { font-size: 1rem; margin-bottom: 6px; }
.why-item p  { color: var(--text-muted); font-size: .875rem; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--bg-raised) 0%, #0a1020 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 80px 0;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}
.cta-band p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

/* ---------- Contact Form ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.contact-details h3 { font-size: 1.2rem; margin-bottom: 16px; }
.contact-details p  { color: var(--text-muted); margin-bottom: 24px; font-size: .95rem; }
.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.contact-item-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.contact-item-text { color: var(--text-muted); font-size: .9rem; }
.contact-item-text strong { color: var(--text); display: block; margin-bottom: 2px; }

form.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.field label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
  padding: 12px 16px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,.12);
}
.field textarea { min-height: 140px; }

/* ---------- Services Page Specifics ---------- */
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 28px;
}
.service-full-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  transition: border-color .2s, transform .2s;
}
.service-full-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.sfcard-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.sfcard-icon {
  width: 52px; height: 52px;
  background: rgba(0,212,255,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.sfcard-head h3 { font-size: 1.1rem; }
.service-full-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .75rem;
  font-family: var(--mono);
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0,212,255,.08);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,.2);
}
.sfcard-list { list-style: none; margin-top: 4px; }
.sfcard-list li {
  position: relative;
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .9rem;
}
.sfcard-list li:last-child { border-bottom: none; }
.sfcard-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- About Page ---------- */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-intro-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  font-family: var(--mono);
}
.about-intro-img img { width: 100%; height: 100%; object-fit: cover; }
.values-list { list-style: none; margin-top: 24px; }
.values-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.values-list li span:first-child { color: var(--accent); font-weight: 700; }

/* ---------- Legal Pages ---------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0;
}
.legal-content h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-meta {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2 {
  font-size: 1.2rem;
  margin: 36px 0 12px;
  color: var(--accent);
}
.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: .95rem;
}
.legal-content ul { padding-left: 20px; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-raised) 0%, var(--bg) 100%);
}
.page-hero .section-label { margin-bottom: 12px; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
  background: var(--bg-card);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { font-size: 1.3rem; margin-bottom: 14px; display: inline-flex; }
.footer-brand .logo img { height: 48px; }
.footer-brand p { color: var(--text-muted); font-size: .875rem; max-width: 260px; }
.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.not-found {
  padding: 120px 0 140px;
  text-align: center;
}
.nf-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.nf-digit {
  font-size: 8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.04em;
}
.nf-logo {
  height: 7rem;
  width: auto;
  display: block;
}
.not-found h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.not-found p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}
@media (max-width: 640px) {
  .nf-digit { font-size: 5rem; }
  .nf-logo  { height: 4.5rem; }
  .not-found { padding: 80px 0 100px; }
}

.footer-disclosure {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: 24px;
  max-width: 720px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-muted); font-size: .8rem; }
.footer-legal a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Utility ---------- */
.accent { color: var(--accent); }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid        { grid-template-columns: 1fr; }
  .hero-visual      { display: none; }
  .stats-grid       { grid-template-columns: repeat(2,1fr); }
  .services-grid    { grid-template-columns: repeat(2,1fr); }
  .team-grid        { grid-template-columns: repeat(2,1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .contact-wrapper  { grid-template-columns: 1fr; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .why-grid         { grid-template-columns: 1fr; }
  .services-full-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section            { padding: 56px 0; }
  .stats-grid        { grid-template-columns: 1fr 1fr; }
  .services-grid     { grid-template-columns: 1fr; }
  .team-grid         { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; }
  .form-row          { grid-template-columns: 1fr; }
  .main-nav          { display: none; flex-direction: column; position: absolute; top: 96px; left: 0; right: 0;
                       background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px 24px 24px; }
  .main-nav.open     { display: flex; }
  .main-nav a        { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-cta           { margin-left: 0 !important; }
  .nav-toggle        { display: flex; }
  .site-header       { position: sticky; }
  .contact-form      { padding: 28px 20px; }
  .footer-bottom     { flex-direction: column; text-align: center; }
}
