/* ========== GLOBAL ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg-dark: #050816;
  --bg-darker: #02010b;
  --bg-alt: #070b18;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.2);
  --accent-bright: #22d3ee;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --card-bg: rgba(15, 23, 42, 0.96);
  --border-subtle: rgba(148, 163, 184, 0.25);
  --radius-lg: 18px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #0b1020 0, #02010b 55%, #000 100%);
  color: var(--text-main);
}

img {
  max-width: 100%;
  display: block;
}

/* ========== LAYOUT HELPERS ========== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(3, 7, 18, 0.96),
    rgba(3, 7, 18, 0.6),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.2rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-image {
  height: 44px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(to right, var(--accent), var(--accent-bright));
  border-radius: 999px;
  transition: width 0.2s ease-out;
}

.main-nav a:hover {
  color: #e5e7ff;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
  background-image: url("../images/aogrl-hero-cosmic.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.1), #020617),
    linear-gradient(to bottom, rgba(3, 7, 18, 0.8), rgba(3, 7, 18, 1));
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.03em;
  margin: 0 0 1rem;
}

.hero-tagline {
  margin: 0 0 1.6rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.hero-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text-muted);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn-full {
  width: 100%;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #0b1120;
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.6);
}

.btn.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.55);
  color: var(--text-main);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 1);
}

/* ========== SECTIONS ========== */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.85),
    rgba(15, 23, 42, 1)
  );
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.2rem;
}

.section-heading h2 {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ========== GRID / CARDS ========== */
.grid {
  display: grid;
  gap: 1.6rem;
}

.services-grid,
.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card-body p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* Placeholder gradient when we don't yet have a real image */
.placeholder-gradient {
  position: relative;
  height: 210px;
  background: radial-gradient(circle at 0 0, #22d3ee33, transparent 55%),
    radial-gradient(circle at 100% 100%, #4f46e533, transparent 55%),
    linear-gradient(135deg, #020617, #0b1120);
  display: flex;
  align-items: flex-end;
  padding: 0.8rem 1rem;
}

.placeholder-label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ========== FOUNDER ========== */
.founder-layout {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.founder-image-wrap {
  display: flex;
  justify-content: center;
}

.founder-image {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.founder-copy h2 {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
}

.founder-copy p {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== CONTACT ========== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-copy h2 {
  margin: 0 0 0.7rem;
}

.contact-copy p {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-highlights {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-highlights li {
  margin-bottom: 0.3rem;
}

.contact-form {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: #020617;
  color: var(--text-main);
  font-size: 0.9rem;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #6b7280;
}

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  padding: 1.2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .founder-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-image,
  .placeholder-gradient {
    height: 190px;
  }
}
