/* ============================================================
   GRDUSA — Global Research and Development, Inc.
   Palette derived from the GRDUSA logo:
   deep navy/black background + blue gradient (deep → bright cyan-blue)
   ============================================================ */

:root {
  --bg:            #050810;   /* near-black, matches logo backdrop */
  --bg-alt:        #0a0f1c;   /* slightly lifted panel */
  --bg-elev:       #0e1424;   /* cards */
  --line:          rgba(120,160,255,0.12);
  --accent:        #1e90ff;   /* dodger blue (logo "A") */
  --accent-bright: #38b6ff;   /* bright cyan-blue highlight */
  --accent-deep:   #0050c8;   /* deep blue gradient base */
  --text:          #e8eef7;
  --text-muted:    #9aa6bd;
  --grad: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 45%, var(--accent-bright) 100%);
  --maxw: 1180px;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,0.8);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.15; letter-spacing: -0.02em; }

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

a { color: inherit; text-decoration: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(30,144,255,0.6);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px rgba(56,182,255,0.7); }
.btn-ghost {
  border-color: rgba(120,160,255,0.35);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); transform: translateY(-3px); }
.btn-lg { padding: 18px 44px; font-size: 1.1rem; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5,8,16,0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 8px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand-logo { height: 52px; width: auto; display: block; transition: height .3s ease; }
.site-header.scrolled .brand-logo { height: 42px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color .2s ease; }
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: #fff; background: var(--grad);
  padding: 9px 22px; border-radius: 999px;
  box-shadow: 0 8px 24px -10px rgba(30,144,255,0.7);
}
.nav .nav-cta:hover { transform: translateY(-2px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.55; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 75% 30%, rgba(30,144,255,0.18), transparent 60%),
    linear-gradient(90deg, var(--bg) 18%, rgba(5,8,16,0.78) 55%, rgba(5,8,16,0.55) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 40%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.8rem; font-weight: 600; color: var(--accent-bright); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4.1rem); font-weight: 800; margin-bottom: 22px; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--text-muted); max-width: 620px; margin-bottom: 18px; }
.tagline { font-family: 'Sora', sans-serif; font-size: 1.15rem; font-weight: 600; margin-bottom: 34px; color: var(--text); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(120,160,255,0.5); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--accent-bright);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0%{opacity:0;top:8px} 30%{opacity:1} 60%{opacity:1;top:22px} 100%{opacity:0;top:22px} }

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; }
.section-eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.78rem; font-weight: 600; color: var(--accent-bright); margin-bottom: 14px; }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; margin-bottom: 18px; }
.section-sub { color: var(--text-muted); font-size: 1.08rem; max-width: 620px; }
.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }

/* ===== About ===== */
.about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.stats { display: flex; gap: 34px; margin-top: 30px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--accent-bright); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.about-media img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* ===== Services Cards ===== */
.services { background: var(--bg-alt); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card-icon {
  font-size: 1.5rem; width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px; color: #fff;
  background: linear-gradient(135deg, rgba(0,80,200,0.35), rgba(56,182,255,0.25));
  border: 1px solid rgba(120,160,255,0.25);
}
.card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Approach ===== */
.approach { padding: 110px 0; overflow: hidden; }
.approach-bg { position: absolute; inset: 0; z-index: 0; }
.approach-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.approach-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg-alt) 0%, rgba(5,8,16,0.92) 50%, var(--bg) 100%); }
.approach-content { position: relative; z-index: 2; max-width: 860px; }
.approach-content > h2 { margin-bottom: 40px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 50px; }
.steps li { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; flex-shrink: 0;
}
.steps h4 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Contact ===== */
.contact { background: var(--bg); text-align: center; padding: 110px 0; }
.contact-inner h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 16px; }
.contact-inner p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 34px; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding: 56px 0 36px; flex-wrap: wrap; }
.footer-logo { height: 56px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-muted); transition: color .2s ease; }
.footer-links a:hover { color: var(--accent-bright); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-bottom p { color: var(--text-muted); font-size: 0.88rem; text-align: center; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .card { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, opacity .8s ease; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { order: -1; }
}

@media (max-width: 720px) {
  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5,8,16,0.55) 0%, rgba(5,8,16,0.85) 60%, var(--bg) 100%);
  }
  .footer-inner { flex-direction: column; gap: 28px; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .stats { gap: 22px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
}
