/* ============================================================
   AutarkiA — BigLearn Dark Theme
   Cor de fundo: #070f0d | Accent: #00AAAA
   ============================================================ */

:root {
  --bg-primary:      #070f0d;
  --bg-glass:        rgba(255,255,255,0.05);
  --glass-border:    rgba(255,255,255,0.09);
  --accent-primary:  #00AAAA;
  --text-primary:    #f0f0f5;
  --text-muted:      rgba(255,255,255,0.55);
  --radius-md:       12px;
  --radius-lg:       20px;
  --transition:      0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'IBM Plex Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.section-padding { padding: 96px 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(0,170,170,0.10);
  border: 1px solid rgba(0,170,170,0.25);
  border-radius: 100px; padding: 4px 14px; margin-bottom: 1rem;
}

.section-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 640px; line-height: 1.7; margin-bottom: 2.5rem;
}

/* ── HERO ── */
.hero {
  position: relative; width: 100%;
  aspect-ratio: 16/9; min-height: 480px; max-height: 700px;
  overflow: hidden; margin-top: 72px;
}
.hero-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(7,15,13,0.82) 0%,rgba(7,15,13,0.55) 50%,rgba(0,0,0,0.30) 100%);
  z-index: 1;
}
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px,6vw,80px); max-width: 720px;
}
.hero-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-primary); background: rgba(0,170,170,0.12);
  border: 1px solid rgba(0,170,170,0.30); border-radius: 100px;
  padding: 5px 14px; margin-bottom: 1.2rem; width: fit-content;
}
.hero-title {
  font-family: 'Space Grotesk','Inter',sans-serif;
  font-size: clamp(1.7rem,4vw,3rem); font-weight: 800;
  color: #fff; line-height: 1.15; margin-bottom: 1.4rem;
}
.hero-subtitle {
  font-size: 1rem; color: rgba(255,255,255,0.72);
  line-height: 1.7; max-width: 540px; margin-top: 1.2rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── HERO2 ── */
.hero2 {
  position: relative; height: 60vh; min-height: 360px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero2-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.hero2::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 1;
}
.hero2-content {
  position: relative; z-index: 2; text-align: center;
  padding: 2rem; max-width: 700px;
}
.hero2-content h2 {
  font-family: 'Space Grotesk','Inter',sans-serif;
  font-size: clamp(1.6rem,3.5vw,2.4rem); font-weight: 800;
  color: #fff; margin-bottom: 1rem;
}
.hero2-content p { font-size: 1.05rem; color: rgba(255,255,255,0.75); line-height: 1.7; }

/* ── BUTTONS — liquid glass + shimmer ── */
.btn, .btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,170,170,0.08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #ffffff !important; padding: 0.75rem 2rem; border-radius: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1px solid rgba(0,200,200,0.22); cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
  position: relative; overflow: hidden;
}
.btn::after, .btn-cta::after {
  content: ''; position: absolute; top: -50%; left: -60%;
  width: 55%; height: 200%;
  background: linear-gradient(105deg,transparent 20%,rgba(255,255,255,0.22) 50%,transparent 80%);
  transform: skewX(-20deg); transition: left 0.55s ease; pointer-events: none;
}
.btn:hover, .btn-cta:hover {
  background: rgba(0,170,170,0.22) !important;
  backdrop-filter: blur(14px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.5) !important;
  border-color: rgba(0,220,220,0.50) !important; color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,170,170,0.25),inset 0 1px 0 rgba(255,255,255,0.16);
}
.btn:hover::after, .btn-cta:hover::after { left: 120%; }

.btn-outline {
  background: rgba(255,255,255,0.04) !important;
  backdrop-filter: blur(6px) !important; -webkit-backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  color: #ffffff !important; box-shadow: none !important;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(14px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.3) !important;
  border-color: rgba(255,255,255,0.55) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22),inset 0 1px 0 rgba(255,255,255,0.18) !important;
  transform: translateY(-2px);
}
.btn-full { width: 100%; text-align: center; justify-content: center; }

/* ── SOBRE ── */
.sobre-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.sobre-text p {
  color: var(--text-muted); font-size: 1rem;
  line-height: 1.8; margin-bottom: 1rem; text-align: justify;
}
.sobre-image img {
  width: 100%; border-radius: var(--radius-lg); object-fit: cover;
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* ── FEATURES 3-col ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.feature-card {
  background: var(--bg-glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: rgba(0,170,170,0.30); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-card-img { width: 100%; height: 200px; object-fit: cover; }
.feature-card-body { padding: 1.5rem; }
.feature-card-body h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.feature-card-body ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.feature-card-body ul li {
  color: var(--text-muted); font-size: 0.9rem;
  padding-left: 1.2rem; position: relative; line-height: 1.5;
}
.feature-card-body ul li::before {
  content: '▸'; position: absolute; left: 0;
  color: var(--accent-primary); font-size: 0.75rem; top: 3px;
}
.feature-card-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-top: 1rem; }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg,rgba(0,170,170,0.06) 0%,rgba(0,0,0,0) 100%);
  border-top: 1px solid rgba(0,170,170,0.12);
  border-bottom: 1px solid rgba(0,170,170,0.12);
  padding: 80px 0; text-align: center;
}
.cta-section h2 {
  font-family: 'Space Grotesk','Inter',sans-serif;
  font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 800;
  color: #fff; margin-bottom: 1.2rem;
}
.cta-section p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; max-width: 780px; margin: 0 auto; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: end; margin-top: 2rem; }
.contact-form-wrapper {
  background: var(--bg-glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 3rem 2.5rem 3.5rem;
}
.form-group { margin-bottom: 1.4rem; }
.form-input, .form-textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px; color: #fff; font-size: 0.95rem; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: rgba(0,170,170,0.50); box-shadow: 0 0 0 3px rgba(0,170,170,0.10);
  background: rgba(0,170,170,0.04);
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.30); }
.form-textarea { resize: vertical; min-height: 140px; }

.gdpr-row { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.6rem; }
.gdpr-row input[type="checkbox"] { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; accent-color: var(--accent-primary); cursor: pointer; }
.gdpr-row label { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; cursor: pointer; }

/* Made by BigLearn card */
.made-by-card {
  display: flex; flex-direction: row; align-items: center;
  gap: 0.85rem; padding: 0.85rem 1rem;
  background: var(--bg-glass); border: 1px solid rgba(0,170,170,0.20);
  border-radius: var(--radius-md); text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.made-by-card:hover {
  border-color: rgba(0,170,170,0.45);
  box-shadow: 0 6px 24px rgba(0,170,170,0.12);
}
.made-by-logo { height: 28px; width: auto; object-fit: contain; display: block; flex-shrink: 0; }
.made-by-text { display: flex; flex-direction: column; gap: 0.15rem; }
.made-by-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: rgba(255,255,255,0.38); line-height: 1;
}
.made-by-sub {
  font-size: 0.72rem; color: var(--accent-primary); letter-spacing: 0.02em; line-height: 1;
}

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-cards-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.contact-card {
  background: var(--bg-glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 0.85rem 1rem;
  font-size: 0.88rem; color: var(--text-muted);
}
.contact-card-row {
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.contact-card-row > div {
  display: flex; flex-direction: column; gap: 0.2rem;
}
.contact-card-icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1.4; }
.contact-card strong { color: #fff; font-size: 0.92rem; }
.contact-card-sub { font-size: 0.75rem; color: rgba(255,255,255,0.38); line-height: 1.4; }
.contact-photo { width: 100%; height: 264px; border-radius: var(--radius-md); object-fit: cover; object-position: center; border: 1px solid var(--glass-border); margin-top: 0.5rem; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #070f0d; }
::-webkit-scrollbar-thumb { background: rgba(0,170,170,0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,170,170,0.6); }

/* ── RESPONSIVE ── */

/* Previne scroll horizontal global */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section-padding { padding: 56px 0; }
  .container { padding: 0 20px; }

  /* Hero: sem aspect-ratio fixo em mobile */
  .hero {
    aspect-ratio: auto;
    min-height: 56vh;
    max-height: none;
    margin-top: 60px;
  }
  .hero-content { padding: 28px 20px 32px; }
  .hero-subtitle { font-size: 0.95rem; }

  .hero-buttons { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero-buttons .btn { width: 100%; max-width: 340px; justify-content: center; }

  /* Hero2 */
  .hero2 { height: auto; min-height: 260px; padding: 3.5rem 0; }

  /* Sobre */
  .sobre-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sobre-image { order: -1; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
  .feature-card-img { height: 160px; }

  /* CTA section */
  .cta-section { padding: 56px 0; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form-wrapper { padding: 1.5rem 1.25rem 2rem; }
}

@media (max-width: 600px) {
  .section-padding { padding: 44px 0; }

  /* Hero */
  .hero { min-height: 60vh; }
  .hero-title { font-size: clamp(1.5rem, 7vw, 2rem); }

  /* Hero2 */
  .hero2-content h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .hero2-content p { font-size: 0.92rem; }

  /* CTA */
  .cta-section { padding: 44px 0; }
  .cta-section h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }

  /* Contact form */
  .contact-form-wrapper { padding: 1.25rem 1rem 1.5rem; border-radius: var(--radius-md); }
  .contact-photo { height: 200px; }

  /* Section labels */
  .section-subtitle { font-size: 0.95rem; margin-bottom: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .contact-cards-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero { min-height: 56vh; }
  .hero-content { padding: 20px 16px 24px; }
  .hero-badge { font-size: 0.68rem; padding: 4px 12px; }
  .hero-buttons .btn { max-width: 100%; }

  /* Hero2 */
  .hero2 { height: auto; min-height: 220px; padding: 3rem 0; }

  /* Features */
  .feature-card-body { padding: 1.1rem; }
}
