/* ============================================================
   CIRCONA.APP — Styles (matching original Tilda layout)
   ============================================================ */

:root {
  --bg-primary: #ffffff;
  --bg-light: #f5f5f5;
  --bg-dark: #222222;
  --text-primary: #000000;
  --text-secondary: #333333;
  --text-muted: #666666;
  --text-white: #ffffff;
  --orange: #ff5c17;
  --orange-dark: #e04e10;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --font: 'Roboto', Arial, sans-serif;
  --container: 1200px;
}

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 30px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--text-white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.btn-outline-orange {
  background: transparent;
  color: var(--orange);
  border-color: transparent;
  font-weight: 400;
  padding: 10px 0;
}
.btn-outline-orange:hover {
  color: var(--orange-dark);
}

.btn-sm { font-size: 14px; padding: 8px 24px; }
.btn-lg { font-size: 18px; padding: 16px 44px; }
.btn-full { width: 100%; }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow);
  padding: 12px 0;
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--orange); }

.header.scrolled .nav-links a { color: var(--text-primary); }
.header.scrolled .nav-links a:hover { color: var(--orange); }

.nav-links-left { margin-right: 40px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  transition: transform 0.3s, opacity 0.3s;
}

.header.scrolled .nav-toggle span { background: var(--text-primary); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-dark);
  text-align: center;
  padding: 120px 0 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero .container { position: relative; z-index: 1; }

.hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-text {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* --- Sections --- */
.section { padding: 80px 0; }

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-header p {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Industries Section --- */
.section-industries {
  background: var(--bg-primary);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s;
}

.industry-card:hover { transform: translateY(-4px); }

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
}

.industry-card-content {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.industry-card-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.industry-card-content p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

/* --- Features Section --- */
.section-features {
  background: var(--bg-light);
}

.section-features .section-header p { color: var(--text-muted); }
.section-features .section-header p strong { color: var(--orange); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Pricing Section --- */
.section-pricing {
  background: var(--bg-primary);
}

.pricing-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.pricing-row:last-child { margin-bottom: 0; }

.pricing-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pricing-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.pricing-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 16px;
  line-height: 1.2;
}

.pricing-price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-features {
  margin-bottom: 24px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.pricing-card .btn { margin-top: auto; }

/* --- CTA Section --- */
.section-cta {
  background: var(--bg-dark);
  text-align: center;
  padding: 100px 0;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--orange); }

/* --- Signup Page --- */
.signup-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-dark);
  position: relative;
  padding: 40px 24px;
}

.signup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(41, 34, 28, 0.7);
}

.signup-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.signup-logo img {
  height: 60px;
  width: auto;
  margin: 0 auto 32px;
}

.signup-content h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.signup-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-form .form-group { width: 100%; }

.signup-form input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 16px;
  border: none;
  border-radius: 7px;
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: box-shadow 0.2s;
}

.signup-form input:focus { box-shadow: 0 0 0 2px var(--orange); }
.signup-form input::placeholder { color: rgba(0,0,0,0.4); }
.signup-form .btn { margin-top: 8px; }

.signup-privacy {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
}

/* --- Form Messages --- */
.form-error { color: #e53e3e; font-size: 14px; margin-top: 8px; }
.form-success { color: #38a169; font-size: 14px; margin-top: 8px; }

/* --- 404 Page --- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-light);
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.error-text { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; }

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-row { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 38px; }
}

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

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text-primary) !important; }
  .nav-links-left { margin-right: 0; }

  .hero { min-height: 80vh; padding: 100px 0 60px; }
  .hero-title { font-size: 30px; }
  .hero-text { font-size: 16px; }

  .section { padding: 60px 0; }
  .section-header h2 { font-size: 26px; }
  .section-header { margin-bottom: 40px; }

  .industry-grid { grid-template-columns: 1fr; }
  .industry-card { min-height: 280px; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-row { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cta-content h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .btn-lg { font-size: 16px; padding: 14px 32px; }
}
