/* --- FONT + TOKENS --- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #f76b1d;
  --primary-dark: #d95b16;
  --primary-soft: rgba(247, 107, 29, 0.12);
  --transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 14px;
  --container-padding: 0 10%;
}

:root[data-theme="light"] {
  --bg: #fdfdfd;
  --text-main: #1a1d22;
  --text-sub: #5f6773;
  --card-bg: #ffffff;
  --border: #e8ecf2;
  --shadow: 0 16px 38px rgba(18, 24, 40, 0.08);
  --bg-rgb: 253, 253, 253;
}

:root[data-theme="dark"] {
  --bg: #0f1116;
  --text-main: #f1f4fa;
  --text-sub: #9ca6ba;
  --card-bg: #171b24;
  --border: #262d3b;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --bg-rgb: 15, 17, 22;
}

/* --- RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(247, 107, 29, 0.07), transparent 22%),
    radial-gradient(circle at 100% 0%, rgba(247, 107, 29, 0.05), transparent 25%),
    var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.45rem, 5vw, 4.15rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  text-align: center;
  margin-bottom: 2.4rem;
}

p {
  color: var(--text-sub);
  margin-bottom: 1.4rem;
  font-size: 1.06rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- HEADER + NAV --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 10%;
  background-color: rgba(var(--bg-rgb), 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 2000;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.logo-group a {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
}

.logo-group img {
  height: 44px;
  width: 44px;
  border-radius: 12px;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

nav ul {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

nav a {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--text-main);
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

nav a.active:not(.cta-btn),
nav a[aria-current="page"]:not(.cta-btn) {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

nav a.cta-btn.active,
nav a.cta-btn[aria-current="page"] {
  box-shadow: 0 0 0 3px rgba(247, 107, 29, 0.22), 0 10px 24px rgba(247, 107, 29, 0.32);
}

/* --- BUTTONS --- */
.cta-btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff !important;
  font-weight: 800;
  border-radius: 999px;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 10px 24px rgba(247, 107, 29, 0.32);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(247, 107, 29, 0.4);
}

.cta-btn.small {
  padding: 0.56rem 1.15rem;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* --- SECTIONS --- */
section {
  padding: 96px 10%;
}

.section-desc {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.3rem;
  font-size: 1.12rem;
}

/* --- FORM --- */
.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.93rem;
}

input,
textarea {
  width: 100%;
  padding: 1rem 1.05rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.98rem;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-soft);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- FOOTER --- */
footer {
  background-color: var(--card-bg);
  padding: 5rem 10% 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col p {
  font-size: 0.98rem;
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-sub);
  font-size: 0.96rem;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.icon-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  color: var(--text-main);
}

.icon-sm:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 0;
}

.legal-links {
  display: flex;
  gap: 1.4rem;
}

.legal-links a {
  font-size: 0.9rem;
  color: var(--text-sub);
}

.legal-links a:hover {
  color: var(--primary);
}

/* --- RESPONSIVE --- */
@media (max-width: 1080px) {
  header {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.9rem 6%;
  }

  nav {
    width: 100%;
  }

  nav ul {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    gap: 1.1rem;
    padding-bottom: 0.4rem;
  }

  nav ul::-webkit-scrollbar {
    height: 4px;
  }

  nav ul::-webkit-scrollbar-thumb {
    background: rgba(127, 136, 151, 0.4);
    border-radius: 999px;
  }

  section {
    padding: 80px 6%;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 64px 5%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .legal-links {
    justify-content: center;
  }
}
