/* ============================================================
   RAYNODE LLC — MAIN STYLESHEET
   Theme: Clean light, sharp typography, professional
   Font: Inter (body) + DM Mono (accents)
   ============================================================ */

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

:root {
  --bg:        #f5f7fa;
  --bg-2:      #ffffff;
  --bg-3:      #eef1f6;
  --surface:   #ffffff;
  --surface-2: #f0f3f8;

  --border:    rgba(30, 60, 110, 0.10);
  --border-2:  rgba(30, 60, 110, 0.18);

  --accent:      #0060df;
  --accent-dark: #004abf;
  --accent-dim:  rgba(0, 96, 223, 0.08);
  --accent-glow: rgba(0, 96, 223, 0.18);

  --text-primary:   #0f1c30;
  --text-secondary: #3a4f6a;
  --text-muted:     #7a90a8;

  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --font-sans: 'Inter', 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;

  --nav-h: 68px;
  --max-w: 1200px;
  --section-gap: 6rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-sm: 0 1px 4px rgba(15,28,48,0.08);
  --shadow-md: 0 4px 16px rgba(15,28,48,0.10);
  --shadow-lg: 0 8px 32px rgba(15,28,48,0.12);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utilities ─────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: var(--section-gap); }

.visually-hidden, .sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.36s; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-sans); letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; color: var(--text-primary); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; }

.section-label {
  display: inline-block; font-family: var(--font-mono); font-size: 0.73rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem; font-weight: 500;
}
.section-header { text-align: center; max-width: 700px; margin-inline: auto; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-sub { font-size: 1.1rem; max-width: 580px; margin-inline: auto; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none; white-space: nowrap; letter-spacing: -0.01em;
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 12px rgba(0,96,223,0.22); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: 0 4px 20px rgba(0,96,223,0.30); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border-2); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--border-2); transform: translateY(-1px); }
.btn--full { width: 100%; justify-content: center; }
.btn:active { transform: scale(0.98); }

/* ── Navigation ────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  background: rgba(245,247,250,0.90);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-nav.scrolled { background: rgba(255,255,255,0.97); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--max-w); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); }
.logo-text { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; color: var(--text-primary); }
.logo-text strong { font-weight: 800; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; padding: 8px 16px; border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text-primary); background: var(--surface-2); }
.nav-cta { background: var(--accent) !important; color: #fff !important; font-weight: 600 !important; border-radius: var(--radius-md) !important; box-shadow: 0 2px 8px rgba(0,96,223,0.2) !important; }
.nav-cta:hover { background: var(--accent-dark) !important; color: #fff !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: 0.3s; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: flex;
  align-items: center; padding-top: var(--nav-h); overflow: hidden;
  background: linear-gradient(160deg, #edf3ff 0%, #f5f7fa 55%, #eef1f8 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,96,223,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,96,223,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black 20%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-glow--1 { width: 700px; height: 700px; top: -150px; right: -150px; background: radial-gradient(circle, rgba(0,96,223,0.10) 0%, transparent 70%); }
.hero-glow--2 { width: 450px; height: 450px; bottom: -100px; left: -80px; background: radial-gradient(circle, rgba(80,160,255,0.08) 0%, transparent 70%); }
.hero-inner { position: relative; z-index: 1; padding-block: 6rem; max-width: var(--max-w); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.73rem; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(0,96,223,0.18); padding: 6px 16px; border-radius: 100px;
  margin-bottom: 2rem; font-weight: 500;
}
.badge-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.hero-headline { margin-bottom: 1.5rem; max-width: 820px; }
.headline-accent { color: var(--accent); display: block; }
.hero-sub { font-size: 1.2rem; max-width: 640px; margin-bottom: 2.5rem; color: var(--text-secondary); line-height: 1.75; }
.hero-sub em { font-style: italic; color: var(--text-primary); font-weight: 500; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-stats { display: flex; align-items: center; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; padding-right: 2.5rem; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.04em; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border-2); margin-right: 2.5rem; }

/* ── Services ──────────────────────────────────────────────── */
.services { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md);
}
.service-card { background: var(--bg-2); padding: 2.25rem 2rem; display: flex; flex-direction: column; gap: 1rem; transition: background 0.2s; position: relative; }
.service-card:hover { background: #fafcff; }
.service-card--accent { background: linear-gradient(135deg, #fafcff 0%, #f0f5ff 100%); }
.service-card--accent:hover { background: linear-gradient(135deg, #f5f8ff 0%, #e8f0ff 100%); }
.card-icon { width: 46px; height: 46px; color: var(--accent); flex-shrink: 0; }
.card-icon svg { width: 100%; height: 100%; }
.service-card h3 { color: var(--text-primary); font-size: 1.1rem; }
.service-card p { font-size: 0.98rem; line-height: 1.75; flex: 1; }
.card-benefits { display: flex; flex-direction: column; gap: 6px; margin-top: 0.25rem; }
.card-benefits li { font-size: 0.88rem; color: var(--text-secondary); padding-left: 18px; position: relative; font-weight: 500; }
.card-benefits li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 1.5px; background: var(--accent); opacity: 0.7; }
.card-link { font-size: 0.9rem; font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 0.5rem; transition: opacity 0.2s; align-self: flex-start; }
.card-link:hover { opacity: 0.7; }

/* ── Why Us ────────────────────────────────────────────────── */
.why-us { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.why-feature {
  padding: 1.75rem 1.75rem 2rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-sm); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.why-feature:hover { border-color: rgba(0,96,223,0.22); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.why-icon { width: 38px; height: 38px; color: var(--accent); }
.why-icon svg { width: 100%; height: 100%; }
.why-feature h3 { font-size: 1.05rem; color: var(--text-primary); }
.why-feature p { font-size: 0.98rem; line-height: 1.75; }

/* ── About ─────────────────────────────────────────────────── */
.about { background: linear-gradient(160deg, #f0f5ff 0%, #f5f7fa 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: center; }
.about-visual { display: flex; justify-content: center; }
.about-graphic { position: relative; width: 300px; height: 300px; display: flex; align-items: center; justify-content: center; }
.about-graphic svg { width: 100%; height: 100%; overflow: visible; }
.about-content { display: flex; flex-direction: column; gap: 1.1rem; }
.about-content h2 { margin-bottom: 0.25rem; }
.about-content p { font-size: 1.05rem; line-height: 1.85; }
.about-content em { font-style: italic; color: var(--text-primary); font-weight: 500; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.5rem; }
.tech-tag { font-family: var(--font-mono); font-size: 0.73rem; letter-spacing: 0.04em; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(0,96,223,0.15); padding: 5px 11px; border-radius: var(--radius-sm); font-weight: 500; }

/* ── Contact ───────────────────────────────────────────────── */
.contact { background: var(--bg-2); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-copy h2 { margin-bottom: 0.25rem; }
.contact-copy p { font-size: 1.05rem; line-height: 1.8; }
.contact-details { display: flex; flex-direction: column; gap: 12px; margin-top: 0.75rem; }
.contact-detail { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.contact-detail:hover { color: var(--accent); }
.detail-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.detail-icon svg { width: 100%; height: 100%; }

/* ── Form ──────────────────────────────────────────────────── */
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
label { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); letter-spacing: -0.005em; }
.required { color: var(--accent); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border-2);
  border-radius: var(--radius-md); padding: 12px 15px;
  font-family: var(--font-sans); font-size: 1rem; color: var(--text-primary);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,96,223,0.10); background: #fff; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a90a8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer;
}
textarea { resize: vertical; min-height: 130px; }
.btn-icon { transition: transform 0.2s; }
.btn--primary:hover .btn-icon { transform: translateX(4px); }
.form-note { font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.form-success { background: rgba(0,96,223,0.06); border: 1.5px solid rgba(0,96,223,0.20); border-radius: var(--radius-md); padding: 16px 20px; font-size: 0.95rem; color: var(--accent); text-align: center; font-weight: 500; }
.form-error { background: rgba(200,30,30,0.05); border: 1.5px solid rgba(200,30,30,0.20); border-radius: var(--radius-md); padding: 16px 20px; font-size: 0.95rem; color: #b91c1c; text-align: center; font-weight: 500; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--text-primary); padding-block: 3.5rem 1.75rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 2.5rem; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .nav-logo { color: #fff; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text strong { color: #60a5fa; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; color: #7a95b5; line-height: 1.65; }
.footer-links nav { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: #7a95b5; transition: color 0.2s; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { font-size: 0.88rem; color: #7a95b5; transition: color 0.2s; font-weight: 500; }
.footer-contact a:hover { color: #60a5fa; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom p { font-size: 0.82rem; color: #4d6480; }
.footer-tagline { font-family: var(--font-mono); letter-spacing: 0.05em; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { display: none; }
}
@media (max-width: 768px) {
  :root { --section-gap: 4rem; }
  .nav-links { display: none; position: fixed; inset: var(--nav-h) 0 0 0; background: rgba(255,255,255,0.98); flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; z-index: 99; border-top: 1px solid var(--border); }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 1.15rem; padding: 12px 24px; }
  .nav-toggle { display: flex; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.5rem; }
  .stat-divider { display: none; }
  .stat { padding-right: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }
  .contact-form { padding: 1.75rem; }
}
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  body { font-size: 17px; }
}

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

/* ── Optional field label ──────────────────────────────────── */
.optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.80rem;
  margin-left: 2px;
}
