/* Design Tokens - Official Intetics */
:root {
    /* Основні кольори Intetics */
    --int-orange:    #F58220;   /* primary */
    --int-white:     #FFFFFF;

    /* Сірі (UI) */
    --int-gray-50:   #F7F7F7;   /* дуже світлий фон секцій/карток */
    --int-gray-100:  #E5E8E9;   /* світлі бордери/зебра */
    --int-gray-400:  #939598;   /* вторинний текст/іконки */
    --int-gray-700:  #4A4A4A;   /* базовий текст на білому */

    /* Акценти (додаткові з брендбуку) */
    --int-blue:      #5EB2F7;
    --int-sky:       #AED8FB;
    --int-teal:      #41C7CF;
    --int-yellow:    #FFC123;
    --int-red:       #FF5E33;

    /* Семантичні змінні */
    --bg-page:       var(--int-white);
    --bg-card:       var(--int-gray-50);
    --text-primary:  var(--int-gray-700);
    --text-secondary: var(--int-gray-400);
    --border-color:  var(--int-gray-100);
    --brand:         var(--int-orange);
    --brand-hover:   #E67312;   /* на 10–12% темніше для hover */
    --focus-ring:    rgba(245,130,32,.35);

    /* Border radius */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 10px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 6px 20px rgba(0,0,0,.06);

    /* Typography */
    --h1: clamp(32px, 3.2vw, 48px);
    --h2: clamp(24px, 2.4vw, 32px);
    --text: 16px;
    --line: 1.6;
}

/* Animation for loader spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Theme: Brand Purple (fallback) */
.theme-brand-purple {
    --bg-page: linear-gradient(135deg, #6D28D9 0%, #7C3AED 40%, #8B5CF6 100%);
    --bg-card: var(--int-white);
    --brand: #7C3AED;
    --brand-hover: #6D28D9;
    --text-primary: white;
    --border-color: rgba(255,255,255,0.2);
}

/* Theme: Brand Orange (primary) */
.theme-brand-orange {
    --bg-page: var(--int-white);
    --bg-card: var(--int-gray-50);
    --brand: var(--int-orange);
    --brand-hover: #E67312;
    --text-primary: var(--int-gray-700);
    --text-secondary: var(--int-gray-400);
    --border-color: var(--int-gray-100);
    --focus-ring: rgba(245,130,32,.35);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: var(--line);
    color: var(--text-primary);
    background: var(--bg-page);
    min-height: 100vh;
    font-size: var(--text);
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Fixed Back to Site Button */
.back-to-site-btn-fixed {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--int-gray-50);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.back-to-site-btn-fixed:hover {
    background: var(--int-gray-100);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    text-decoration: none;
}

/* Header */
.app-header {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.app-header h1 {
    font-size: var(--h1);
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.app-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    line-height: 1.2;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }

p, li {
    font-size: var(--text);
    line-height: var(--line);
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sections */
.section {
    display: none;
    width: 100%;
    max-width: 800px;
}

.section.active {
    display: block;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.card h2 {
    font-size: var(--h2);
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-primary);
}

/* Form styles */
.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input:not([type]),
textarea {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--text);
    color: var(--text-primary);
    background-color: var(--int-white);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    border: 1px solid var(--brand);
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: background .2s ease, transform .05s ease;
}

.btn-primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--int-white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: background .2s ease;
}

.btn-secondary:hover {
    background: var(--bg-card);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-schedule-call {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-schedule-call:hover {
    background: linear-gradient(45deg, #219a52, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.3);
}

/* Progress bar */
.progress-bar {
    position: relative;
    height: 8px;
    background: var(--int-gray-100);
    border-radius: 9999px;
    overflow: hidden;
    margin: 30px 0 20px 0;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--brand);
    transition: width 0.4s ease;
}

.progress-text {
    position: absolute;
    top: -22px;
    right: 0;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Company profile */
.company-profile {
    background: var(--int-white);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.company-detail {
    margin-bottom: 15px;
}

.company-detail strong {
    display: inline-block;
    width: 120px;
    color: var(--brand);
    font-weight: 600;
}

/* Error state */
.error-state .card {
    border-left: 4px solid #e74c3c;
}

.error-message {
    background: #fadbd8;
    color: #c0392b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Footer */
.app-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 40px;
    font-size: 0.9rem;
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 15px;
    }
    
    .app-header h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 25px;
    }
    
    .input-group {
        flex-direction: column;
    }
}

.big-cta-btn {
  width: 100%;
  padding: 24px 28px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  border-radius: 14px;
  letter-spacing: 0.2px;
  background-color: var(--brand-orange, #ff6600);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: background-color 0.2s ease-in-out, transform 0.2s;
}

.big-cta-btn:hover {
  background-color: #e65c00;
  transform: translateY(-2px);
}

.discovery-text {
  font-size: 28px;       /* робить текст більшим */
  font-weight: 800;      /* товстіший шрифт */
  color: #ff6600;        /* яскраво-оранжевий */
  text-align: center;    /* по центру */
  margin: 20px 0;        /* відступи зверху і знизу */
}

/* Individual roadmap styling */
.individual-roadmap .roadmap-content {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.individual-roadmap .roadmap-content > div {
  margin-bottom: 30px;
}

.individual-roadmap .roadmap-content h3 {
  color: var(--brand);
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.individual-roadmap .roadmap-content h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.individual-roadmap .roadmap-content p {
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 15px;
}

.individual-roadmap .roadmap-content ul {
  margin-left: 0;
  padding-left: 20px;
}

.individual-roadmap .roadmap-content li {
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.5;
}