/* ============================================================
   SEANGAGNE.COM — HEADER + HERO STYLES
   Accent: #00c2cb (teal) | Dark: #0d1117 | Text: #1a1a1a
   ============================================================ */

/* ============================================================
   TOKENS & RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --sg-teal:      #00c2cb;
  --sg-teal-lt:   rgba(0, 194, 203, 0.12);
  --sg-teal-mid:  rgba(0, 194, 203, 0.3);
  --sg-dark:      #0d1117;
  --sg-dark-card: #161b22;
  --sg-text:      #1a1a1a;
  --sg-text-mid:  #4a5568;
  --sg-text-muted:#767676;
  --sg-border:    rgba(0, 194, 203, 0.15);
  --sg-radius:    14px;
  --sg-max:       1120px;
  --sg-header-h:  72px;
}

/* ============================================================
   HEADER
   ============================================================ */
.sg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.96);
  border-bottom: 1px solid var(--sg-border);
  height: var(--sg-header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.sg-header.scrolled {
  background: rgba(13, 17, 23, 0.98);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.sg-header__inner {
  max-width: var(--sg-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* --- Logo --- */
.sg-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
a.sg-header__logo img {
  height: 48px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* --- Nav --- */
.sg-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sg-nav__item { position: relative; }

.sg-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 15px;
  border-radius: 8px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.sg-nav__link:hover,
.sg-nav__link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}
.sg-nav__link.active {
  color: var(--sg-teal);
  background: var(--sg-teal-lt);
}

/* --- Chevron --- */
.sg-nav__chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
  opacity: 0.55;
  flex-shrink: 0;
}
.sg-nav__item--has-dropdown:hover .sg-nav__chevron,
.sg-nav__item--has-dropdown.open .sg-nav__chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* --- Dropdown --- */
.sg-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: var(--sg-dark-card);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 100;
  list-style: none;
  margin: 0;
}
.sg-nav__item--has-dropdown:hover .sg-dropdown,
.sg-nav__item--has-dropdown.open .sg-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sg-dropdown__link {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.sg-dropdown__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.sg-dropdown__link.active { color: var(--sg-teal); }
.sg-dropdown__divider {
  height: 1px;
  background: var(--sg-border);
  margin: 4px 0;
}

/* --- Hamburger --- */
.sg-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.18s;
  flex-shrink: 0;
}
.sg-header__hamburger:hover { background: rgba(255, 255, 255, 0.07); }
.sg-header__hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
}
.sg-header__hamburger span:nth-child(2) { width: 72%; }
.sg-header__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sg-header__hamburger.open span:nth-child(2) { opacity: 0; width: 100%; }
.sg-header__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile nav drawer --- */
.sg-mobile-nav {
  display: none;
  position: fixed;
  top: var(--sg-header-h);
  left: 0;
  right: 0;
  background: var(--sg-dark-card);
  border-bottom: 1px solid var(--sg-border);
  padding: 12px 24px 22px;
  z-index: 999;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  flex-direction: column;
  gap: 2px;
}
.sg-mobile-nav.open { display: flex; }
.sg-mobile-nav__link {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.sg-mobile-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.sg-mobile-nav__link.active { color: var(--sg-teal); }
.sg-mobile-nav__divider {
  height: 1px;
  background: var(--sg-border);
  margin: 8px 0;
}
.sg-mobile-nav__cta {
  display: block;
  margin-top: 10px;
  padding: 13px 20px;
  border-radius: 8px;
  background: var(--sg-teal);
  color: var(--sg-dark);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

/* ============================================================
   HERO
   ============================================================ */
.sg-hero {
  background: var(--sg-dark);
  padding: 90px 28px 100px;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

/* Subtle radial glow behind blob */
.sg-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 5%;
  width: 520px;
  height: 520px;
  background: radial-gradient(ellipse, rgba(0, 194, 203, 0.13) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.sg-hero__inner {
  max-width: var(--sg-max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* --- Left: text --- */
.sg-hero__content { display: flex; flex-direction: column; }

.sg-eyebrow {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sg-teal);
  margin: 0 0 14px;
  font-family: 'Inter', system-ui, sans-serif;
}

.sg-hero__name {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.sg-hero__name span { color: var(--sg-teal); }

.sg-hero__sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 36px;
  max-width: 520px;
}

.sg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Buttons --- */
.sg-btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 9px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.18s, transform 0.18s, background 0.18s;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.sg-btn--primary {
  background: var(--sg-teal);
  color: var(--sg-dark);
}
.sg-btn--primary:hover { opacity: 0.88; transform: translateY(-2px); }

.sg-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}
.sg-btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* --- Right: blob image --- */
.sg-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Outer glow ring */
.sg-hero__visual::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 194, 203, 0.18) 0%, transparent 72%);
  animation: blobGlow 8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes blobGlow {
  0%   { opacity: 0.7; transform: scale(0.96); }
  100% { opacity: 1;   transform: scale(1.04); }
}

.sg-blob-clip {
  position: relative;
  width: 380px;
  height: 380px;
  z-index: 1;
  flex-shrink: 0;
}

.sg-blob-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sg-blob-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  clip-path: url(#sgBlobClip);
  -webkit-clip-path: url(#sgBlobClip);
}

.sg-blob-ring {
  position: absolute;
  inset: -3px;
  background: transparent;
  border: 2.5px solid rgba(0, 194, 203, 0.45);
  clip-path: url(#sgBlobClip);
  -webkit-clip-path: url(#sgBlobClip);
  z-index: 2;
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .sg-nav { display: none; }
  .sg-header__hamburger { display: flex; }

  .sg-hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }
  .sg-hero__sub { margin-left: auto; margin-right: auto; }
  .sg-hero__actions { justify-content: center; }
  /* Hide blob image on mobile */
  .sg-hero__visual { display: none; }
}

@media (max-width: 480px) {
  .sg-hero { padding: 60px 20px 72px; }
  .sg-btn { padding: 12px 22px; font-size: 0.9rem; }
}
