/* SWE Enginuity demo — CustomGPT.ai sales prop (visual parity with swe.org) */
:root {
  --purple: #5B4E7A;
  --purple-dark: #4A3C5C;
  --purple-deep: #3D3352;
  --teal: #00838F;
  --teal-dark: #006d76;
  --gold: #C9B037;
  --text: #2a2438;
  --muted: #5a6570;
  --bg: #f4f2f7;
  --card: #ffffff;
  --border: #e4e0ea;
  --navy: #5B4E7A;
  --brand: #5B4E7A;
  --brand-dark: #4A3C5C;
  --accent: #00838F;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", cursive;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(91, 78, 122, 0.1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.55; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(1140px, calc(100% - 2.5rem)); margin: 0 auto; }

.demo-banner {
  background: linear-gradient(90deg, #7a00df, #5B4E7A);
  color: #fff; text-align: center; font-size: 0.78rem; padding: 0.4rem 1rem; font-weight: 600;
  position: sticky; top: 0; z-index: 100;
}
.demo-banner span { opacity: 0.92; font-weight: 500; }

.utility-bar {
  background: var(--purple-dark); color: #fff; font-size: 0.82rem; padding: 0.5rem 0;
}
.utility-bar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.utility-bar a { color: #fff; font-style: italic; margin-left: 1rem; text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; }
.utility-bar .ask-link { font-style: normal; font-weight: 700; text-decoration: underline; }

.logo-row {
  background: #fff; padding: 1rem 0 0.85rem; border-bottom: 1px solid var(--border);
}
.logo-row .container {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.logo-mark {
  display: flex; align-items: center; gap: 0.7rem; text-decoration: none !important; color: var(--purple);
  white-space: nowrap;
}
.logo-mark:hover { color: var(--purple); }
.gear-mark {
  width: 44px; height: 44px; position: relative; flex-shrink: 0;
}
.gear-mark span {
  position: absolute; border-radius: 50%; border: 3px solid;
}
.gear-mark .g1 { width: 28px; height: 28px; border-color: #9a9a9a; left: 0; top: 8px; }
.gear-mark .g2 { width: 22px; height: 22px; border-color: var(--gold); left: 14px; top: 0; }
.gear-mark .g3 { width: 18px; height: 18px; border-color: var(--purple); left: 18px; top: 20px; background: #fff; }
.logo-text .word { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--purple); }
.logo-text .sub { font-size: 0.68rem; color: var(--purple); font-weight: 600; margin-top: 0.15rem; }

.social-dots { display: flex; gap: 0.4rem; margin-left: auto; }
.social-dots i {
  width: 28px; height: 28px; border-radius: 50%; background: var(--teal); display: inline-flex;
  align-items: center; justify-content: center; color: #fff; font-size: 0.7rem; font-style: normal; font-weight: 700;
}

.chat-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--purple); color: #fff !important; text-decoration: none !important;
  padding: 0.55rem 0.9rem 0.55rem 0.65rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
}
.chat-pill:hover { background: var(--purple-deep); text-decoration: none !important; }
.chat-pill .bot {
  width: 26px; height: 26px; border-radius: 8px; background: #fff; color: var(--purple);
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem;
}
.chat-pill .arrow {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--purple);
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; margin-left: 0.15rem;
}

.demo-hsearch { flex: 1 1 200px; max-width: 280px; position: relative; min-width: 160px; }
.demo-hsearch form { position: relative; margin: 0; }
.demo-hsearch input {
  width: 100%; padding: 0.6rem 2.6rem 0.6rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--border); background: #faf9fc; color: var(--purple); font-size: 0.88rem; font-family: var(--font);
}
.demo-hsearch input:focus { outline: 2px solid rgba(0,131,143,0.35); border-color: var(--teal); background: #fff; }
.demo-hsearch .ai-tag {
  position: absolute; right: 2.4rem; top: 50%; transform: translateY(-50%);
  font-size: 0.62rem; font-weight: 800; color: var(--teal); pointer-events: none;
}
.demo-hsearch .go {
  position: absolute; right: 4px; top: 4px; bottom: 4px; width: 32px; border: none; border-radius: 50%;
  background: var(--teal); color: #fff; cursor: pointer; font-size: 0.95rem;
}
.demo-hsearch .go:hover { background: var(--teal-dark); }
.demo-searchdrop {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  min-width: min(520px, 92vw); background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,0.18); z-index: 60; overflow: hidden;
}
.demo-searchdrop .sd-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); background: #f7f5fa;
}
.demo-searchdrop .sd-head .lab { color: var(--teal); letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.72rem; font-weight: 800; }
.demo-searchdrop .sd-close { border: none; background: #e8e4ef; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
#customgpt_search { width: 100%; min-height: 160px; padding: 4px; }

.main-nav {
  background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 28px; z-index: 40;
}
.main-nav .container { display: flex; align-items: center; gap: 0.5rem; padding: 0.15rem 0; flex-wrap: wrap; }
.nav { display: flex; align-items: center; gap: 0.15rem 1.1rem; flex-wrap: wrap; padding: 0.55rem 0; }
.nav a {
  color: var(--purple); font-weight: 600; font-size: 0.9rem; text-decoration: none; padding: 0.35rem 0;
}
.nav a:hover, .nav a.active { color: var(--teal); }
.nav .btn {
  background: var(--teal); color: #fff !important; padding: 0.5rem 1rem; border-radius: 999px; text-decoration: none !important;
}
.nav .btn:hover { background: var(--teal-dark); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 0.4rem 0.7rem; font-weight: 700; color: var(--purple);
}

.hero {
  background: linear-gradient(180deg, #f0eef4 0%, #f7f6f9 40%, #fff 100%);
  padding: 3rem 0 2.5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -40px; left: 0; right: 0; height: 80px;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(91,78,122,0.06) 100%);
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
.hero-kicker {
  font-family: var(--script); font-size: 1.85rem; color: var(--teal); margin: 0 0 0.35rem; font-weight: 400; line-height: 1;
}
.hero h1 {
  margin: 0 0 1.1rem; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--purple); line-height: 1.15; font-weight: 700;
}
.hero p { margin: 0 0 1.35rem; color: var(--muted); max-width: 32rem; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-primary, .btn-secondary, .btn-try {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.35rem; border-radius: 999px; font-weight: 700; text-decoration: none !important; font-size: 0.95rem;
}
.btn-primary { background: var(--teal); color: #fff !important; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { background: transparent; color: var(--purple) !important; border: 1.5px solid var(--purple); }
.btn-secondary:hover { background: rgba(91,78,122,0.06); }
.btn-try { background: var(--purple) !important; color: #fff !important; box-shadow: 0 6px 18px rgba(91,78,122,0.25); }
.btn-try:hover { filter: brightness(1.08); }

.hero-visual {
  background: linear-gradient(145deg, #ddd6e8, #c5bdd4);
  border-radius: 8px 8px 0 0; aspect-ratio: 16/11; display: flex; align-items: flex-end; justify-content: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.hero-visual .photo-stack {
  display: flex; gap: 0; width: 100%; height: 100%;
}
.hero-visual .person {
  flex: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1.5rem;
  background: linear-gradient(180deg, transparent 20%, rgba(61,51,82,0.35) 100%);
}
.hero-visual .avatar {
  width: 72px; height: 72px; border-radius: 50%; border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hero-visual .p1 { background: #c45c6a; }
.hero-visual .p2 { background: #5B4E7A; }
.hero-visual .p3 { background: #00838F; }
.hero-visual .caption {
  position: absolute; bottom: 0; left: 0; right: 0; background: rgba(91,78,122,0.92); color: #fff;
  padding: 0.65rem 1rem; font-size: 0.82rem; font-weight: 600;
}

.promise-row {
  margin-top: -1.5rem; position: relative; z-index: 2; padding-bottom: 1rem;
}
.promise-row .container { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.promise-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden;
}
.promise-card .img {
  height: 120px; background: linear-gradient(135deg, #e8e4ef, #d4cfe0);
  display: flex; align-items: center; justify-content: center; color: var(--purple); font-family: var(--serif); font-weight: 700;
}
.promise-card .body { padding: 1rem 1.15rem 1.2rem; }
.promise-card .script { font-family: var(--script); color: var(--teal); font-size: 1.4rem; margin: 0 0 0.25rem; }
.promise-card h3 { margin: 0 0 0.35rem; color: var(--purple); font-size: 1.05rem; }
.promise-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.section { padding: 3rem 0; }
.section.alt { background: var(--bg); }
.section-head { margin-bottom: 1.5rem; }
.section-head h2 {
  margin: 0; font-family: var(--serif); font-size: 1.65rem; color: var(--purple);
}
.section-head p { margin: 0.4rem 0 0; color: var(--muted); max-width: 38rem; }
.eyebrow {
  font-family: var(--script); color: var(--teal); font-size: 1.45rem; margin: 0 0 0.2rem; font-weight: 400;
}

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(91,78,122,0.14); transition: 0.15s ease; }
.card-accent { height: 5px; background: linear-gradient(90deg, var(--purple), var(--teal)); }
.card-body { padding: 1.15rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-body .tag {
  align-self: flex-start; background: rgba(0,131,143,0.1); color: var(--teal-dark);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 4px;
}
.card-body h3 { margin: 0; font-size: 1.05rem; color: var(--purple); }
.card-body p { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }

.cta-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.cta-pill {
  display: block; text-align: center; font-weight: 700; background: #fff; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 1rem 0.75rem; color: var(--purple); text-decoration: none !important; box-shadow: var(--shadow);
}
.cta-pill:hover { border-color: var(--teal); color: var(--teal); }

.cta-band {
  background: linear-gradient(120deg, var(--purple), var(--purple-deep));
  color: #fff; border-radius: 16px; padding: 2rem 2.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 0.4rem; font-size: 1.45rem; font-family: var(--serif); }
.cta-band p { margin: 0; color: #d9d2e6; max-width: 34rem; }

.site-footer { background: var(--purple-deep); color: #c9bfd8; padding: 2.5rem 0 1.5rem; margin-top: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.75rem; }
.site-footer h4 { color: #fff; margin: 0 0 0.7rem; font-size: 0.92rem; }
.site-footer a { color: #d5cce3; display: block; margin-bottom: 0.35rem; font-size: 0.9rem; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-note { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1rem; font-size: 0.8rem; color: #9a8fb0; }
.footer-note strong { color: #e0d8ec; }

.assistant-page { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #f5f7fa; }
.assistant-page .assistant-frame { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.assistant-page #customgpt_chat { flex: 1; min-height: calc(100vh - 96px); width: 100%; }
.assistant-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 0.65rem 0; }
.assistant-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.assistant-bar a.back { font-weight: 700; color: var(--teal); text-decoration: none; }
.assistant-bar strong { color: var(--purple); }

@media (max-width: 960px) {
  .hero .container, .promise-row .container, .grid-3, .footer-grid, .cta-strip { grid-template-columns: 1fr 1fr; }
  .social-dots { display: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; margin: 0.4rem 0; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; }
  .nav.open { display: flex; }
  .hero .container, .promise-row .container, .grid-3, .footer-grid, .cta-strip { grid-template-columns: 1fr; }
  .demo-hsearch { flex: 1 1 100%; max-width: none; order: 5; }
  .main-nav { top: 0; }
}
