/* ================================================================
   Started — Components
   (buttons · header · nav · cards · form · section-header · footer)
   Source of truth for button style: pressablebuttonlogin.dart
   ================================================================ */


/* ----------------------------------------------------------------
   § 1 — Buttons
   Matches PressableButtonLogin:
     • StadiumBorder  → border-radius: 9999px
     • LinearGradient → bottom-left to top-right (#8c3264 → #72338b)
     • pressed state  → #dda1c2 → #cca1dd
     • vertical pad   → aroundpaddingbutton18 = 18 × 0.5 = 9 px
     • font           → Inter 18 700
     • text color     → #fdfafc
   ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 28px;
  border-radius: 9999px;
  font-family: var(--ff-inter);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity       0.18s ease,
    transform     0.18s ease,
    background    0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Primary — gradient (default button style across the whole site) */
.btn-primary {
  background: linear-gradient(
    to top right,
    #8c3264,   /* primary  (a1-50) */
    #72338b    /* secondary (a2-50) */
  );
  color: #fcfafd;  /* accent299 */
}
.btn-primary:hover  {
  opacity: 0.88;
}
.btn-primary:focus-visible,
.btn-primary.is-pressed,
.btn-primary:active {
  background: linear-gradient(to top right, #dda1c2, #cca1dd);
  transform: scale(0.98);
  opacity: 1;
}

/* Ghost — transparent, subtle border */
.btn-ghost {
  background: transparent;
  color: #fdfafc;
  border: 1.5px solid rgba(253, 250, 252, 0.28);
}
.btn-ghost:hover  { border-color: rgba(253, 250, 252, 0.55); }
.btn-ghost:focus-visible,
.btn-ghost.is-pressed,
.btn-ghost:active { transform: scale(0.98); }

/* Size modifier: compact (e.g. header CTA) */
.btn--sm {
  padding: 8px 20px;
  font-size: 15px;
}


/* ----------------------------------------------------------------
   § 2 — Site Header
   ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;  /* fully transparent — content scrolls behind */
  border-bottom: 0;
}

/* Inner flex row: logo ← auto-margin → nav · gap · cta */
.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
}

/* Logo — pushes nav+cta to the right via margin-right: auto */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}
.header-logo img {
  height: 40px;
  width: auto;
}

/* Nav links — same gap to button as between links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-right: 36px; /* matches inter-link gap → equal spacing to CTA button */
}
.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: rgb(252, 250, 253);   /* accent299 */
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
  position: relative;
  opacity: 0.82;
}
.header-nav a:hover {
  color: rgb(204, 161, 221);   /* accent280 */
  opacity: 1;
}
.header-nav a.active,
.header-nav a:focus-visible {
  color: rgb(187, 67, 134);    /* accent160 · Color.fromARGB(255, 187, 67, 134) */
  opacity: 1;
}
.header-nav a::after {
  content: none;
}
.header-nav a:hover::after,
.header-nav a.active::after,
.header-nav a:focus-visible::after {
  content: none;
}

/* Mobile: hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: #fdfafc;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
/* Animated X on open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile breakpoint */
@media (max-width: 899px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(2, 1, 3, 0.97);
    padding: 20px var(--page-inline) 28px;
    gap: 20px;
    border-bottom: 0;
  }
  .header-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
}


/* ----------------------------------------------------------------
   § 3 — Section Header (label + title + sub)
   ---------------------------------------------------------------- */

.section-header {
  margin-bottom: var(--sp-12);
}

.section-header--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Eyebrow label — Inclusive Sans, matches AppFonts.appbartitle style */
.section-label {
  display: inline-block;
  font-family: var(--ff-inclusive);
  font-size: 15px;
  font-weight: 700;
  color: #8c3264;     /* primary · accent150 */
  margin-bottom: 12px;
  letter-spacing: normal;
  text-transform: none;
}

/* Main section headline — Inclusive Sans w500, fluid sizing — matches hero */
.section-title {
  font-family: var(--ff-inclusive);
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.12;
  color: #fcfafd;    /* accent299 */
  margin-bottom: 16px;
}

@media (min-width: 900px) {
  .section-title {
    font-size: clamp(56px, 5vw, 96px);
    line-height: 1.08;
    letter-spacing: -1.1px;
  }
}

/* Supporting paragraph — Inter w400, accent299 @ 50% */
.section-sub {
  font-family: var(--ff-inter);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(252, 250, 253, 0.5);   /* accent299 @ 50% */
  max-width: 560px;
}
.section-header--center .section-sub {
  margin-inline: auto;
}


/* ----------------------------------------------------------------
   § 4 — Feature Card
   ---------------------------------------------------------------- */

.card {
  background: rgba(253, 250, 252, 0.04);
  border: 1px solid rgba(253, 250, 252, 0.08);
  border-radius: 20px;
  padding: var(--sp-8);
  transition:
    background    0.2s ease,
    border-color  0.2s ease,
    transform     0.2s ease;
}
.card:hover {
  background: rgba(253, 250, 252, 0.07);
  border-color: rgba(253, 250, 252, 0.14);
  transform: translateY(-2px);
}

/* Icon area at top of card */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(to bottom right, #381428, #2e1438);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--sp-5);
  flex-shrink: 0;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #fdfafc;
  margin-bottom: 8px;
}

.card-body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(253, 250, 252, 0.58);
}


/* ----------------------------------------------------------------
   § 5 — Image / Screenshot Placeholder
   Used until real assets are available.
   ---------------------------------------------------------------- */

.img-placeholder {
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    #381428 0%,
    #2e1438 40%,
    #1c0a14 100%
  );
  border: 1px solid rgba(253, 250, 252, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(253, 250, 252, 0.2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Phone-shaped mockup */
.img-placeholder--phone {
  aspect-ratio: 9 / 19;
  max-width: 240px;
  border-radius: 36px;
}

/* Landscape screenshot */
.img-placeholder--screen {
  aspect-ratio: 16 / 10;
  width: 100%;
}


/* ----------------------------------------------------------------
   § 6 — Divider
   ---------------------------------------------------------------- */

.divider {
  height: 1px;
  background: rgba(253, 250, 252, 0.07);
  border: none;
  margin-block: 0;
}


/* ----------------------------------------------------------------
   § 7 — Contact Form
   ---------------------------------------------------------------- */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(253, 250, 252, 0.7);
  letter-spacing: 0.3px;
}

.form-input,
.form-textarea {
  background: rgba(253, 250, 252, 0.04);
  border: 1px solid rgba(253, 250, 252, 0.14);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #fdfafc;
  outline: none;
  transition: border-color 0.18s;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(253, 250, 252, 0.28);
}

.form-input:focus,
.form-textarea:focus {
  border-color: #cc72a4;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}


/* ----------------------------------------------------------------
   § 8 — University Logo Grid (placeholder tiles)
   ---------------------------------------------------------------- */

.uni-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

@media (min-width: 600px)  { .uni-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .uni-grid { grid-template-columns: repeat(4, 1fr); } }

.uni-tile {
  background: rgba(253, 250, 252, 0.04);
  border: 1px solid rgba(253, 250, 252, 0.08);
  border-radius: 14px;
  aspect-ratio: 3 / 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(253, 250, 252, 0.35);
  transition: background 0.18s, border-color 0.18s;
}
.uni-tile:hover {
  background: rgba(253, 250, 252, 0.07);
  border-color: rgba(253, 250, 252, 0.14);
}


/* ----------------------------------------------------------------
   § 9 — Stat Badge  (numbers in hero or sections)
   ---------------------------------------------------------------- */

.stat-badge {
  background: rgba(253, 250, 252, 0.05);
  border: 1px solid rgba(253, 250, 252, 0.1);
  border-radius: 14px;
  padding: 12px 20px;
  text-align: center;
}
.stat-badge__number {
  font-family: var(--ff-inclusive);
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(to right, #cc72a4, #b272cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-badge__label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(253, 250, 252, 0.5);
  margin-top: 3px;
}


/* ----------------------------------------------------------------
   § 10 — Site Footer
   ---------------------------------------------------------------- */

.site-footer {
  border-top: 0;
  padding-block: var(--sp-12);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-5);
}

.footer-logo img {
  height: 28px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.footer-logo:hover img { opacity: 1; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(253, 250, 252, 0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(253, 250, 252, 0.8); }

.footer-copy {
  font-size: 13px;
  color: rgba(253, 250, 252, 0.3);
}

@media (max-width: 599px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}


/* ================================================================
   SECTION LAYOUTS  (block-grid · flip · accent text)
   ================================================================ */

/* ----------------------------------------------------------------
   § 11 — Two-column block grid
   Default: left = content-a, right = content-b.
   --flip modifier: reverses columns on desktop only, preserving
   the mobile DOM order (readable text before interactive elements).
   ---------------------------------------------------------------- */

.block-grid {
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}

.block-grid > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .block-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }

  /* Flip column order on desktop without touching the DOM */
  .block-grid--flip > :first-child { order: 2; }
  .block-grid--flip > :last-child  { order: 1; }
}


/* ----------------------------------------------------------------
   § 12 — Gradient accent text span
   Usage: <span class="accent">word</span>
   Gradient: accent170 (#cc72a4) → accent270 (#b272cc), bottom-left → top-right
   ---------------------------------------------------------------- */

.accent {
  background: linear-gradient(
    to top right,
    #cc72a4,   /* accent170 · Color.fromARGB(255, 204, 114, 164) */
    #b272cc    /* accent270 · Color.fromARGB(255, 178, 114, 204) */
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ----------------------------------------------------------------
   § 13 — Feature Tiles  (Block 2)
   Background: accent190 (#eed0e1)
   Title: Inter w500, accent201 (#020103)
   Body: Inter w400 smaller, accent201
   No border, rounded corners.
   ---------------------------------------------------------------- */

.feature-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.feature-tiles > * {
  min-width: 0;
}

@media (max-width: 479px) {
  .feature-tiles { grid-template-columns: 1fr; }
}

.feature-tile {
  display: flex;
  flex-direction: column;
  background: rgba(253, 250, 252, 0.98);
  border-radius: 22px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.feature-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(221, 161, 194, 0.1), transparent 44%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.feature-tile::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  top: -48px;
  right: -44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(140, 50, 100, 0.18), rgba(114, 51, 139, 0.16));
  filter: blur(2px);
}

.feature-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.feature-tile:hover::before {
  opacity: 1;
}

.feature-tile__title {
  font-family: var(--ff-inter);
  font-size: 16px;
  font-weight: 700;
  color: #020103;         /* accent201 · Color.fromARGB(255, 2, 1, 3) */
  margin-bottom: 8px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.feature-tile__body {
  font-family: var(--ff-inter);
  font-size: 13px;
  font-weight: 400;
  color: #020103;         /* accent201 */
  line-height: 1.58;
  overflow-wrap: break-word;
  position: relative;
  z-index: 1;
}

.feature-tile__media {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #381428, #2e1438, #170a1c);
  box-shadow:
    inset 0 1px 0 rgba(253, 250, 252, 0.18),
    0 18px 34px rgba(0, 0, 0, 0.14);
}

.feature-tile__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(253, 250, 252, 0.14), transparent 24%, transparent 72%, rgba(2, 1, 3, 0.1)),
    linear-gradient(135deg, rgba(204, 114, 164, 0.08), transparent 42%, rgba(178, 114, 204, 0.08));
  pointer-events: none;
}

.feature-tile__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-tile__content {
  position: relative;
  z-index: 1;
  padding: 16px 10px 10px;
}


/* ----------------------------------------------------------------
   § 14 — University Email Field  (Block 3)
   Styled after TextfieldChat (dark mode colors):
     bg        → accent201  #020103
     border    → accent290  #e5d0ee  (unfocused)
     border    → accent170  #cc72a4  (focused)
     text      → accent299  #fcfafd
     hint      → accent280  #cca1dd
     icon      → accent299  #fcfafd
     radius    → 24px  (textfieldandbackgoundradius15)
   Larger than the app version as requested.
   ---------------------------------------------------------------- */

.uni-field {
  display: flex;
  align-items: center;
  background: #020103;        /* accent201 */
  border: 1px solid #e5d0ee;  /* accent290 */
  border-radius: 24px;
  padding: 15px 20px;
  gap: 12px;
  transition: border-color 0.18s;
  margin-bottom: var(--sp-4);
}

.uni-field:focus-within {
  border-color: #cc72a4;      /* accent170 */
}

.uni-field__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--ff-inter);
  font-size: 18px;
  font-weight: 700;
  color: #fcfafd;             /* accent299 */
}

.uni-field__input::placeholder {
  color: #cca1dd;             /* accent280 = faded */
  font-weight: 500;
}

.uni-field__send {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  color: #fcfafd;             /* accent299 */
  transition: color 0.15s;
  flex-shrink: 0;
}

.uni-field__send:hover {
  color: #cca1dd;             /* accent280 */
}


/* ----------------------------------------------------------------
   § 15 — Contact Form Fields  (Block 5)
   Same dark-mode textfield style as § 14, individual stacked fields.
   ---------------------------------------------------------------- */

.cf-field {
  display: flex;
  align-items: center;
  background: rgba(2, 1, 3, 0.78);        /* accent201 */
  border: 1px solid rgba(229, 208, 238, 0.72);  /* accent290 */
  border-radius: 24px;
  padding: 14px 20px;
  transition: border-color 0.18s, box-shadow 0.18s ease, background 0.18s ease;
  margin-bottom: var(--sp-3);
  box-shadow: inset 0 1px 0 rgba(252, 250, 253, 0.05);
}

.cf-field:focus-within {
  border-color: #cc72a4;      /* accent170 */
  background: rgba(2, 1, 3, 0.92);
  box-shadow:
    0 0 0 4px rgba(204, 114, 164, 0.08),
    inset 0 1px 0 rgba(252, 250, 253, 0.08);
}

.cf-field input,
.cf-field textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--ff-inter);
  font-size: 15px;
  font-weight: 700;
  color: #fcfafd;             /* accent299 */
  resize: none;
  width: 100%;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: #cca1dd;             /* accent280 */
  font-weight: 500;
}

.cf-field--textarea {
  align-items: flex-start;
  border-radius: 20px;
  padding-block: 16px;
  min-height: 140px;
}

.cf-field--textarea textarea {
  min-height: 108px;
}


/* ----------------------------------------------------------------
   § 16 — Founder Portrait  (Block 4)
   ---------------------------------------------------------------- */

.photo-placeholder {
  border-radius: 24px;
  background: transparent;
  border: 0;
  aspect-ratio: 3 / 4;
  max-width: 400px;
  width: 100%;
  display: block;
  padding: 0;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.photo-placeholder::before,
.photo-placeholder::after {
  content: none;
}

.photo-placeholder__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}


/* ----------------------------------------------------------------
   § 17 — Countdown Button fixed-width
   Size stays constant regardless of text content (days/hours/min/sec).
   ---------------------------------------------------------------- */

.btn-countdown {
  min-width: 270px;
  width: 270px;
  justify-content: center;
}

.btn-beta {
  min-width: 270px;
  width: 270px;
  justify-content: center;
  margin-top: 12px;
  background: linear-gradient(
    to top right,
    var(--color-join-btn-1),
    var(--color-join-btn-2)
  );
  color: #fcfafd;
}

.btn-beta:hover {
  opacity: 0.9;
}

.btn-beta:focus-visible,
.btn-beta.is-pressed,
.btn-beta:active {
  transform: scale(0.98);
  opacity: 1;
}

@media (max-width: 599px) {
  .btn-countdown,
  .btn-beta { width: 100%; min-width: 0; }
}


/* ----------------------------------------------------------------
   § 18 — Pulse Art  (Block 3 decoration)
   Four concentric rings that expand outward and fade,
   like a location/signal broadcast — "your campus live".
   Colors cycle through the brand rose-violet palette.
   ---------------------------------------------------------------- */

.pulse-art {
  position: relative;
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  filter: drop-shadow(0 26px 80px rgba(114, 51, 139, 0.2));
}

.pulse-art__ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  animation: pulse-out 3.2s ease-out infinite;
}

.pulse-art__ring:nth-child(1) {
  width: 180px; height: 180px;
  border-color: rgba(140, 50, 100, 0.85);   /* primary */
  animation-delay: 0s;
}
.pulse-art__ring:nth-child(2) {
  width: 180px; height: 180px;
  border-color: rgba(114, 51, 139, 0.75);   /* secondary */
  animation-delay: 0.8s;
}
.pulse-art__ring:nth-child(3) {
  width: 180px; height: 180px;
  border-color: rgba(187, 67, 134, 0.65);   /* accent160 */
  animation-delay: 1.6s;
}
.pulse-art__ring:nth-child(4) {
  width: 180px; height: 180px;
  border-color: rgba(178, 114, 204, 0.55);  /* accent270 */
  animation-delay: 2.4s;
}

@keyframes pulse-out {
  0%   { transform: scale(0.25); opacity: 1; }
  100% { transform: scale(2.4);  opacity: 0; }
}

/* Centre dot */
.pulse-art__dot {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #8c3264, #72338b);
  box-shadow: 0 0 20px rgba(140, 50, 100, 0.6);
}

.section-title,
.section-sub {
  overflow-wrap: break-word;
}
