/* 
   Apple-inspired Design System 
   Clean, Minimalist, Premium
*/

:root {
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --background-main: #fbfbfd;
    --background-card: #ffffff;
    --accent-color: #0071e3;
    --accent-hover: #0077ed;
    --divider-color: #d2d2d7;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-card: 2px 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 4px 8px 20px rgba(0, 0, 0, 0.12);
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --section-padding: 80px 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--background-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5em;
    font-size: 17px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 980px;
    /* Apple's content width */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Utilities --- */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 21px;
    text-align: center;
    color: var(--text-secondary);
    margin-top: -40px;
    margin-bottom: 60px;
}

.grid {
    display: grid;
    gap: 20px;
}

.bg-grey {
    background-color: #f5f5f7;
}

.text-center {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 980px;
    /* Pill shape */
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    color: var(--accent-color);
    background-color: transparent;
}

.btn-secondary:hover {
    text-decoration: underline;
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 19px;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    height: 48px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.nav {
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        gap: 24px;
    }

    .nav a {
        font-size: 14px;
        color: var(--text-primary);
        opacity: 0.8;
    }

    .nav a:hover {
        opacity: 1;
        color: var(--accent-color);
    }
}

/* --- Hero --- */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
    overflow: hidden;
}

.hero-title {
    font-size: 56px;
    line-height: 1.07;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 24px;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.3;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-image-placeholder {
    margin-top: 60px;
    font-size: 100px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Benefits --- */
.benefits-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background-color: var(--background-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.benefits h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

/* --- Instructions --- */
.instructions {
    background-color: #000;
    color: #f5f5f7;
}

.instructions .section-title {
    color: #f5f5f7;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    font-weight: 700;
    line-height: 40px;
    margin-bottom: 20px;
}

.step h3 {
    color: #f5f5f7;
    margin-bottom: 10px;
}

.step p {
    color: #a1a1a6;
}

.platforms-block {
    text-align: center;
    margin-top: 60px;
}

.platforms-block h3 {
    color: #f5f5f7;
    margin-bottom: 30px;
}

.platforms-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.platform-btn {
    padding: 10px 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
    transition: background-color 0.2s;
}

.platform-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- Text Blocks --- */
.text-block p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 19px;
    line-height: 1.6;
}

.text-block h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

/* --- Offer --- */
.offer {
    background: linear-gradient(135deg, #e0f2ff 0%, #f0f8ff 100%);
    text-align: center;
}

.offer h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.offer p {
    font-size: 21px;
    color: var(--text-primary);
    margin-bottom: 40px;
}

/* --- Pricing --- */
.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

@media (min-width: 900px) {
    .pricing-grid {
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
    }
}

.pricing-card {
    background-color: var(--background-card);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-card);
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 350px;
    border: 1px solid #d2d2d7;
}

.pricing-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    z-index: 2;
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.best-value {
    background-color: #30d158;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.price-period {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.total-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.savings {
    font-size: 14px;
    color: #30d158;
    /* Apple green */
    font-weight: 600;
    margin-bottom: 25px;
}

.features-list {
    margin-bottom: 30px;
    text-align: left;
    margin-left: 20px;
}

.features-list li {
    margin-bottom: 10px;
    font-size: 15px;
    position: relative;
    padding-left: 20px;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.pricing-card .btn {
    width: 100%;
}

/* --- Reviews --- */
.reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.review-card {
    background-color: var(--background-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.review-name {
    font-weight: 600;
}

.review-text {
    font-size: 16px;
    font-style: italic;
    color: #434344;
}

/* --- Guarantee --- */
.guarantee .container {
    border: 2px dashed #d2d2d7;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.guarantee-icon {
    font-size: 80px;
    margin-top: 30px;
    display: inline-block;
    position: relative;
    z-index: 1;
    animation: heartbeat 2s ease-in-out infinite;
}

.guarantee-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: ripple 2s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.15);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(1);
    }
}

@keyframes ripple {
    0% {
        width: 60px;
        height: 60px;
        opacity: 0.8;
    }

    100% {
        width: 140px;
        height: 140px;
        opacity: 0;
    }
}

/* --- FAQ --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--divider-color);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px 0;
    background: none;
    border: none;
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    color: var(--text-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 24px;
    font-size: 17px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Approximate max height */
}

.faq-item.active .arrow {
    transform: rotate(180deg);
}

.arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
    background-color: #f5f5f7;
    padding: 40px 0;
    border-top: 1px solid var(--divider-color);
    font-size: 12px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    color: var(--text-secondary);
}

/* --- Responsive Adjustments --- */
@media (min-width: 768px) {
    .section-title {
        font-size: 56px;
    }

    .hero-title {
        font-size: 72px;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* --- SEO Feature Section Redesign --- */
.features-detailed {
    background-color: #fbfbfd;
}

.features-detailed-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

/* UI Card Visual */
.visual-side {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
}

.ui-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.ui-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #30d158;
    background: rgba(255, 255, 255, 0.5);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #30d158;
    border-radius: 50%;
    box-shadow: 0 0 10px #30d158;
    animation: pulse 2s infinite;
}

.card-body {
    padding: 30px;
}

.connection-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.location-icon {
    font-size: 32px;
}

.connection-line {
    flex-grow: 1;
    height: 4px;
    background-color: #e5e5e5;
    margin: 0 15px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.moving-packet {
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: movePacket 2s linear infinite;
}

.connection-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background: #f5f5f7;
    padding: 15px;
    border-radius: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 1;
}

.info-item .label {
    font-size: 11px;
    text-transform: uppercase;
    color: #86868b;
    margin-bottom: 4px;
}

.info-item .value {
    font-weight: 600;
    font-size: 14px;
}

.app-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.app-icon {
    font-size: 24px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s;
    cursor: default;
}

.app-icon:hover {
    transform: scale(1.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(48, 209, 88, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(48, 209, 88, 0);
    }
}

@keyframes movePacket {
    0% {
        left: -20%;
    }

    100% {
        left: 100%;
    }
}

@media (min-width: 900px) {
    .features-detailed-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .text-side {
        width: 50%;
    }

    .visual-side {
        width: 45%;
    }
}